mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '41ed749fe987e60b0485fa721ad869590651324d'
* commit '41ed749fe987e60b0485fa721ad869590651324d': ogg: Do not try to use the parser if it is not present Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
09c15eac3e
|
@ -406,6 +406,9 @@ static int vorbis_packet(AVFormatContext *s, int idx)
|
||||||
struct oggvorbis_private *priv = os->private;
|
struct oggvorbis_private *priv = os->private;
|
||||||
int duration, flags = 0;
|
int duration, flags = 0;
|
||||||
|
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue