96 |
|
|
97 |
dec->edged_width = 16 * dec->mb_width + 2 * EDGE_SIZE; |
dec->edged_width = 16 * dec->mb_width + 2 * EDGE_SIZE; |
98 |
dec->edged_height = 16 * dec->mb_height + 2 * EDGE_SIZE; |
dec->edged_height = 16 * dec->mb_height + 2 * EDGE_SIZE; |
99 |
|
dec->low_delay = 0; |
100 |
|
|
101 |
if (image_create(&dec->cur, dec->edged_width, dec->edged_height)) { |
if (image_create(&dec->cur, dec->edged_width, dec->edged_height)) { |
102 |
xvid_free(dec); |
xvid_free(dec); |
135 |
xvid_free(dec); |
xvid_free(dec); |
136 |
return XVID_ERR_MEMORY; |
return XVID_ERR_MEMORY; |
137 |
} |
} |
138 |
|
|
139 |
|
memset(dec->mbs, 0, sizeof(MACROBLOCK) * dec->mb_width * dec->mb_height); |
140 |
|
|
141 |
// add by chenm001 <chenm001@163.com> |
// add by chenm001 <chenm001@163.com> |
142 |
// for skip MB flag |
// for skip MB flag |
143 |
dec->last_mbs = |
dec->last_mbs = |
153 |
return XVID_ERR_MEMORY; |
return XVID_ERR_MEMORY; |
154 |
} |
} |
155 |
|
|
156 |
|
memset(dec->last_mbs, 0, sizeof(MACROBLOCK) * dec->mb_width * dec->mb_height); |
157 |
|
|
158 |
init_timer(); |
init_timer(); |
159 |
|
|
160 |
// add by chenm001 <chenm001@163.com> |
// add by chenm001 <chenm001@163.com> |