Commit 6fd47806 authored by Michael Niedermayer's avatar Michael Niedermayer

oggdec: print error on unsupported versions

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 96fb233e
...@@ -239,8 +239,10 @@ static int ogg_read_page(AVFormatContext *s, int *str) ...@@ -239,8 +239,10 @@ static int ogg_read_page(AVFormatContext *s, int *str)
return AVERROR_INVALIDDATA; 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; return AVERROR_INVALIDDATA;
}
flags = avio_r8(bc); flags = avio_r8(bc);
gp = avio_rl64 (bc); gp = avio_rl64 (bc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment