comparison mdec.c @ 1598:932d306bf1dc libavcodec

av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author michael
date Mon, 03 Nov 2003 13:26:22 +0000
parents aa6042a0558f
children 8d3540dddd1b
comparison
equal deleted inserted replaced
1597:4c9165372ab3 1598:932d306bf1dc
108 level= (level*qscale*quant_matrix[j])>>3; 108 level= (level*qscale*quant_matrix[j])>>3;
109 level= (level-1)|1; 109 level= (level-1)|1;
110 } 110 }
111 } 111 }
112 if (i > 63){ 112 if (i > 63){
113 fprintf(stderr, "ac-tex damaged at %d %d\n", a->mb_x, a->mb_y); 113 av_log(a->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", a->mb_x, a->mb_y);
114 return -1; 114 return -1;
115 } 115 }
116 116
117 block[j] = level; 117 block[j] = level;
118 } 118 }
173 if(p->data[0]) 173 if(p->data[0])
174 avctx->release_buffer(avctx, p); 174 avctx->release_buffer(avctx, p);
175 175
176 p->reference= 0; 176 p->reference= 0;
177 if(avctx->get_buffer(avctx, p) < 0){ 177 if(avctx->get_buffer(avctx, p) < 0){
178 fprintf(stderr, "get_buffer() failed\n"); 178 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
179 return -1; 179 return -1;
180 } 180 }
181 p->pict_type= I_TYPE; 181 p->pict_type= I_TYPE;
182 p->key_frame= 1; 182 p->key_frame= 1;
183 a->last_dc[0]= 183 a->last_dc[0]=