mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavf/oggdec: fix demux with unrecognized header packets
Fixes ticket #10289. Co-authored-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
e0835b4878
commit
57271e4a68
@ -311,7 +311,12 @@ static int vorbis_header(AVFormatContext *s, int idx)
|
|||||||
if (!(pkt_type & 1))
|
if (!(pkt_type & 1))
|
||||||
return priv->vp ? 0 : AVERROR_INVALIDDATA;
|
return priv->vp ? 0 : AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
if (os->psize < 1 || pkt_type > 5)
|
if (pkt_type > 5) {
|
||||||
|
av_log(s, AV_LOG_VERBOSE, "Ignoring packet with unknown type %d\n", pkt_type);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (os->psize < 1)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
if (priv->packet[pkt_type >> 1])
|
if (priv->packet[pkt_type >> 1])
|
||||||
|
Loading…
Reference in New Issue
Block a user