diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-04 13:48:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-04 14:40:22 +0200 |
commit | 6fd478062c9c582389ed8b1de9806f5848e64769 (patch) | |
tree | 908868c6652e019514c3a37f09e49b88c3d8b4bd /libavformat/oggdec.c | |
parent | 96fb233e6457f9bd37b30d77dace2736926acd1b (diff) | |
download | ffmpeg-6fd478062c9c582389ed8b1de9806f5848e64769.tar.gz |
oggdec: print error on unsupported versions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r-- | libavformat/oggdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 4eaae2de75..e93a689f90 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -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); |