comparison dv.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 e08df4d22d27
children 59f2fa833449
comparison
equal deleted inserted replaced
1597:4c9165372ab3 1598:932d306bf1dc
295 pos += run; 295 pos += run;
296 /* error */ 296 /* error */
297 if (pos >= 64) { 297 if (pos >= 64) {
298 read_error: 298 read_error:
299 #if defined(VLC_DEBUG) || 1 299 #if defined(VLC_DEBUG) || 1
300 fprintf(stderr, "error pos=%d\n", pos); 300 av_log(NULL, AV_LOG_ERROR, "error pos=%d\n", pos);
301 #endif 301 #endif
302 /* for errors, we consider the eob is reached */ 302 /* for errors, we consider the eob is reached */
303 mb->eob_reached = 1; 303 mb->eob_reached = 1;
304 break; 304 break;
305 } 305 }
866 s->picture.reference = 0; 866 s->picture.reference = 0;
867 avctx->pix_fmt = s->sys->pix_fmt; 867 avctx->pix_fmt = s->sys->pix_fmt;
868 avctx->width = s->sys->width; 868 avctx->width = s->sys->width;
869 avctx->height = s->sys->height; 869 avctx->height = s->sys->height;
870 if(avctx->get_buffer(avctx, &s->picture) < 0) { 870 if(avctx->get_buffer(avctx, &s->picture) < 0) {
871 fprintf(stderr, "get_buffer() failed\n"); 871 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
872 return -1; 872 return -1;
873 } 873 }
874 s->picture.interlaced_frame = 1; 874 s->picture.interlaced_frame = 1;
875 s->picture.top_field_first = 0; 875 s->picture.top_field_first = 0;
876 876