mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
oggparseskeleton: avoid header parsing failure
Based on description by James Almer and the xiph wiki Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7f25050289
commit
9a6e814be7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user