diff ratecontrol.c @ 1705:954593137d37 libavcodec

picture number fixes
author michael
date Mon, 29 Dec 2003 22:25:08 +0000
parents f3287b5d8d9f
children dea5b2946999
line wrap: on
line diff
--- a/ratecontrol.c	Sun Dec 28 11:35:54 2003 +0000
+++ b/ratecontrol.c	Mon Dec 29 22:25:08 2003 +0000
@@ -39,7 +39,7 @@
 
 void ff_write_pass1_stats(MpegEncContext *s){
     sprintf(s->avctx->stats_out, "in:%d out:%d type:%d q:%d itex:%d ptex:%d mv:%d misc:%d fcode:%d bcode:%d mc-var:%d var:%d icount:%d;\n",
-            s->picture_number, s->input_picture_number - s->max_b_frames, s->pict_type, 
+            s->current_picture_ptr->display_picture_number, s->current_picture_ptr->coded_picture_number, s->pict_type, 
             s->current_picture.quality, s->i_tex_bits, s->p_tex_bits, s->mv_bits, s->misc_bits, 
             s->f_code, s->b_code, s->current_picture.mc_mb_var_sum, s->current_picture.mb_var_sum, s->i_count);
 }