Commit 9a6e814b authored by Michael Niedermayer's avatar Michael Niedermayer

oggparseskeleton: avoid header parsing failure

Based on description by James Almer and the xiph wiki
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7f250502
......@@ -37,6 +37,9 @@ static int skeleton_header(AVFormatContext *s, int idx)
strcpy(st->codec->codec_name, "skeleton");
st->codec->codec_type = AVMEDIA_TYPE_DATA;
if ((os->flags & OGG_FLAG_EOS) && os->psize == 0)
return 1;
if (os->psize < 8)
return -1;
......
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