changeset 5579:e5752e0e373d libavformat

Print a warning when DATA chunk is encountered in the middle of chunk. From multirate RM patch by Ronald S. Bultje
author kostya
date Sat, 23 Jan 2010 09:42:52 +0000
parents e892e44a0b6b
children 07ce73fed19f
files rmdec.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rmdec.c	Fri Jan 22 23:16:23 2010 +0000
+++ b/rmdec.c	Sat Jan 23 09:42:52 2010 +0000
@@ -562,6 +562,9 @@
                 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)