From 80adda8efd35c920c7ba0c43d530102a2fd22bc3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 29 Jul 2003 01:45:19 +0000 Subject: [PATCH] debug stuff Originally committed as revision 2093 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/msmpeg4.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index 839d8dbac4..0849f90229 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -1313,13 +1313,14 @@ return -1; break; } s->no_rounding = 1; -/* printf("qscale:%d rlc:%d rl:%d dc:%d mbrl:%d slice:%d \n", + if(s->avctx->debug&FF_DEBUG_PICT_INFO) + printf("qscale:%d rlc:%d rl:%d dc:%d mbrl:%d slice:%d \n", s->qscale, s->rl_chroma_table_index, s->rl_table_index, s->dc_table_index, s->per_mb_rl_table, - s->slice_height);*/ + s->slice_height); } else { switch(s->msmpeg4_version){ case 1: @@ -1359,14 +1360,17 @@ return -1; s->inter_intra_pred= (s->width*s->height < 320*240 && s->bit_rate<=II_BITRATE); break; } -/* printf("skip:%d rl:%d rlc:%d dc:%d mv:%d mbrl:%d qp:%d \n", + + if(s->avctx->debug&FF_DEBUG_PICT_INFO) + printf("skip:%d rl:%d rlc:%d dc:%d mv:%d mbrl:%d qp:%d \n", s->use_skip_mb_code, s->rl_table_index, s->rl_chroma_table_index, s->dc_table_index, s->mv_table_index, s->per_mb_rl_table, - s->qscale);*/ + s->qscale); + if(s->flipflop_rounding){ s->no_rounding ^= 1; }else{