[FFmpeg-devel] [ogg] Respect AVERROR codes returned by ogg header parsing.

Dale Curtis dalecurtis at chromium.org
Wed Nov 29 21:57:17 EET 2017

On Tue, Nov 28, 2017 at 4:32 PM, Michael Niedermayer <michael at niedermayer.cc
> wrote:
> This breaks converting of this:
> ./ffmpeg -i bgc.sub.dub.ogm -vf subtitles=bgc.sub.dub.ogm -an  file.avi
> https://samples.ffmpeg.org/ogg/bgc.sub.dub.ogm
That's due to the vorbis parser returning AVERROR_INVALIDDATA here, with
pkt_type == 5 and priv->packet[0] == priv_packet[1] == null.

Which were added in 2010 here:

It seems that file has invalid vorbis streams if the check is to be
believed. What do you want to do here? Restrict this error behind

- dale

More information about the ffmpeg-devel mailing list