Browse Source

oggdec: print error on unsupported versions

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

+ 3
- 1
libavformat/oggdec.c View File

@@ -239,8 +239,10 @@ static int ogg_read_page(AVFormatContext *s, int *str)
return AVERROR_INVALIDDATA;
}

if (avio_r8(bc) != 0) /* version */
if (avio_r8(bc) != 0){ /* version */
av_log (s, AV_LOG_ERROR, "ogg page, unsupported version\n");
return AVERROR_INVALIDDATA;
}

flags = avio_r8(bc);
gp = avio_rl64 (bc);


Loading…
Cancel
Save