}
}
if (i > 63){
- fprintf(stderr, "ac-tex damaged at %d %d\n", a->mb_x, a->mb_y);
+ av_log(a->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", a->mb_x, a->mb_y);
return -1;
}
static inline int decode_mb(MDECContext *a, DCTELEM block[6][64]){
int i;
- const int block_index[6]= {5,6,0,1,2,3};
+ const int block_index[6]= {5,4,0,1,2,3};
a->dsp.clear_blocks(block[0]);
AVFrame * const p= (AVFrame*)&a->picture;
int i;
- *data_size = 0;
-
/* special case for last picture */
if (buf_size == 0) {
return 0;
p->reference= 0;
if(avctx->get_buffer(avctx, p) < 0){
- fprintf(stderr, "get_buffer() failed\n");
+ av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return -1;
}
p->pict_type= I_TYPE;
a->qscale= get_bits(&a->gb, 16);
a->version= get_bits(&a->gb, 16);
- printf("qscale:%d (0x%X), version:%d (0x%X)\n", a->qscale, a->qscale, a->version, a->version);
+// printf("qscale:%d (0x%X), version:%d (0x%X)\n", a->qscale, a->qscale, a->version, a->version);
for(a->mb_x=0; a->mb_x<a->mb_width; a->mb_x++){
for(a->mb_y=0; a->mb_y<a->mb_height; a->mb_y++){
av_freep(&a->picture.qscale_table);
a->bitstream_buffer_size=0;
- avcodec_default_free_buffers(avctx);
-
return 0;
}