You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ogg: Do not try to use the parser if it is not present
Bug-Id: 886 CC: libav-stable@libav.org
This commit is contained in:
@@ -364,6 +364,9 @@ static int vorbis_packet(AVFormatContext *s, int idx)
|
|||||||
struct oggvorbis_private *priv = os->private;
|
struct oggvorbis_private *priv = os->private;
|
||||||
int duration;
|
int duration;
|
||||||
|
|
||||||
|
if (!priv->vp)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
/* first packet handling
|
/* first packet handling
|
||||||
* here we parse the duration of each packet in the first page and compare
|
* here we parse the duration of each packet in the first page and compare
|
||||||
* the total duration to the page granule to find the encoder delay and
|
* the total duration to the page granule to find the encoder delay and
|
||||||
|
Reference in New Issue
Block a user