Browse Source

avformat/nutdec: Fix handling of older 4.0 files

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
6b041cb617
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/nutdec.c

+ 1
- 1
libavformat/nutdec.c View File

@@ -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);
}



Loading…
Cancel
Save