[FFmpeg-cvslog] avformat/nutdec: Fix handling of older 4.0 files

Michael Niedermayer git at videolan.org
Thu May 29 02:23:43 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 29 01:48:02 2014 +0200| [6b041cb617e5d5e4fc46c8be91c127c6b366bc79] | committer: Michael Niedermayer

avformat/nutdec: Fix handling of older 4.0 files

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b041cb617e5d5e4fc46c8be91c127c6b366bc79
---

 libavformat/nutdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 5fd2a40..7da6f2c 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -341,7 +341,7 @@ static int decode_main_header(NUTContext *nut)
     }
 
     // flags had been effectively introduced in version 4
-    if (nut->version > NUT_STABLE_VERSION) {
+    if (nut->version > 3 && end > avio_tell(bc) + 4) {
         nut->flags = ffio_read_varlen(bc);
     }
 



More information about the ffmpeg-cvslog mailing list