X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavformat%2Foggparseskeleton.c;h=d94b0c2e07bf34c965d367b3bc6b03f43a6dfd47;hp=b0121059a07fd7851a9c773188c43bac74c56791;hb=9a6e814be7c052deb34a8f585176d053f4c187c1;hpb=7f250502897e7af7d9912519c3251f89866feb04 diff --git a/libavformat/oggparseskeleton.c b/libavformat/oggparseskeleton.c index b0121059a0..d94b0c2e07 100644 --- a/libavformat/oggparseskeleton.c +++ b/libavformat/oggparseskeleton.c @@ -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;