[Ffmpeg-devel] [PATCH] shut up nonsense error messages
Diego Biurrun
diego
Fri Apr 14 20:07:43 CEST 2006
Currently libavcodec/error_resilience.c spits out "error messages" like
the following for some files:
[rv10 @ 0x102ab688]concealing 0 DC, 0 AC, 0 MV errors
Zero errors does not look like a good reason to spam the console to me.
Therefore I suggest the patch below.
Diego
--- libavcodec/error_resilience.c 12 Jan 2006 22:43:15 -0000 1.32
+++ libavcodec/error_resilience.c 14 Apr 2006 18:03:21 -0000
@@ -828,7 +828,8 @@
if(error&AC_ERROR) ac_error ++;
if(error&MV_ERROR) mv_error ++;
}
- av_log(s->avctx, AV_LOG_INFO, "concealing %d DC, %d AC, %d MV errors\n", dc_error, ac_error, mv_error);
+ if( dc_error + ac_error + mv_error > 0 )
+ av_log(s->avctx, AV_LOG_INFO, "concealing %d DC, %d AC, %d MV errors\n", dc_error, ac_error, mv_error);
is_intra_likely= is_intra_more_likely(s);
More information about the ffmpeg-devel
mailing list