aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-01-23 09:42:52 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2010-01-23 09:42:52 +0000
commit98287358e941a2173e05f7efd3630693b997459b (patch)
tree6b49c369e3937aa9829947aa08490cfe9e4bc31a
parenta7e6328cba02f07d5e8e358f473e1cff272175e6 (diff)
downloadffmpeg-98287358e941a2173e05f7efd3630693b997459b.tar.gz
Print a warning when DATA chunk is encountered in the middle of chunk.
From multirate RM patch by Ronald S. Bultje Originally committed as revision 21392 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rmdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index ff93e515cd..be01286695 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -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)