changeset 8106:2f5101a67500 libavcodec

Only warn about "Invalid and inefficient vfw-avi packed B frames" once. Patch by Andrew Savchenko, Bircoph at list dot ru
author andoma
date Tue, 04 Nov 2008 06:54:42 +0000
parents b122cb798801
children e61f76efc9f3
files h263.c mpegvideo.h
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Mon Nov 03 21:59:35 2008 +0000
+++ b/h263.c	Tue Nov 04 06:54:42 2008 +0000
@@ -5751,8 +5751,10 @@
         s->divx_version= ver;
         s->divx_build= build;
         s->divx_packed= e==3 && last=='p';
-        if(s->divx_packed)
+        if(s->divx_packed && !s->showed_packed_warning) {
             av_log(s->avctx, AV_LOG_WARNING, "Invalid and inefficient vfw-avi packed B frames detected\n");
+            s->showed_packed_warning=1;
+        }
     }
 
     /* ffmpeg detection */
--- a/mpegvideo.h	Mon Nov 03 21:59:35 2008 +0000
+++ b/mpegvideo.h	Tue Nov 04 06:54:42 2008 +0000
@@ -487,6 +487,7 @@
     /* H.263 specific */
     int gob_index;
     int obmc;                       ///< overlapped block motion compensation
+    int showed_packed_warning;      ///< flag for having shown the warning about divxs invalid b frames
 
     /* H.263+ specific */
     int umvplus;                    ///< == H263+ && unrestricted_mv