comparison rv10.c @ 1823:a660ef952580 libavcodec

(f)printf() is disallowed in libavcodec, compilation will fail now if its used, except that codecs which where added after the printf->av_log change which did ignore av_log() and used prinf are now silent and wont print anything, they should be changed to use av_log, i could do that, but its better if the orginal developer decides which AV_LOG level each message should get
author michael
date Sun, 22 Feb 2004 00:31:19 +0000
parents 7186712b391e
children 2de13087f46e
comparison
equal deleted inserted replaced
1822:7366bb5c363f 1823:a660ef952580
401 s->last_non_b_time= s->time; 401 s->last_non_b_time= s->time;
402 }else{ 402 }else{
403 s->time= seq; 403 s->time= seq;
404 s->pb_time= s->pp_time - (s->last_non_b_time - s->time); 404 s->pb_time= s->pp_time - (s->last_non_b_time - s->time);
405 if(s->pp_time <=s->pb_time || s->pp_time <= s->pp_time - s->pb_time || s->pp_time<=0){ 405 if(s->pp_time <=s->pb_time || s->pp_time <= s->pp_time - s->pb_time || s->pp_time<=0){
406 printf("messed up order, seeking?, skiping current b frame\n"); 406 av_log(s->avctx, AV_LOG_DEBUG, "messed up order, seeking?, skiping current b frame\n");
407 return FRAME_SKIPED; 407 return FRAME_SKIPED;
408 } 408 }
409 } 409 }
410 } 410 }
411 // printf("%d %d %d %d %d\n", seq, (int)s->time, (int)s->last_non_b_time, s->pp_time, s->pb_time); 411 // printf("%d %d %d %d %d\n", seq, (int)s->time, (int)s->last_non_b_time, s->pp_time, s->pb_time);