Commit 98287358 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Kostya Shishkov

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
parent a7e6328c
...@@ -562,6 +562,9 @@ static int sync(AVFormatContext *s, int64_t *timestamp, int *flags, int *stream_ ...@@ -562,6 +562,9 @@ static int sync(AVFormatContext *s, int64_t *timestamp, int *flags, int *stream_
if(len<0) if(len<0)
continue; continue;
goto skip; 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) if(state > (unsigned)0xFFFF || state <= 12)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment