]> git.sesse.net Git - ffmpeg/commitdiff
Print a warning when DATA chunk is encountered in the middle of chunk.
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 23 Jan 2010 09:42:52 +0000 (09:42 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 23 Jan 2010 09:42:52 +0000 (09:42 +0000)
From multirate RM patch by Ronald S. Bultje

Originally committed as revision 21392 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rmdec.c

index ff93e515cd19bcaf3678bc2ba55c2f3a8717bd70..be01286695aa6ed7172a6749390be20e72418cff 100644 (file)
@@ -562,6 +562,9 @@ static int sync(AVFormatContext *s, int64_t *timestamp, int *flags, int *stream_
                 if(len<0)
                     continue;
                 goto skip;
+            } else if (state == MKBETAG('D','A','T','A')) {
+                av_log(s, AV_LOG_WARNING,
+                       "DATA tag in middle of chunk, file may be broken.\n");
             }
 
             if(state > (unsigned)0xFFFF || state <= 12)