[FFmpeg-devel] [PATCH] avcodec/opus_parser: Handle complete frames flag.

Hendrik Leppkes h.leppkes at gmail.com
Wed Aug 22 11:52:21 EEST 2018


On Wed, Aug 22, 2018 at 12:55 AM James Almer <jamrial at gmail.com> wrote:
>
> On 8/20/2018 3:35 PM, Jacob Trimble wrote:
> > I am not entirely sure what this flag is supposed to be, since there
> > is no documentation where it is defined.  But this was suggested by
> > James Almer as a fix for my encrypted Opus problems and several other
> > codec parsers do the same thing.
>
> It's a flag that lets the parser know what kind of frames it's getting.
> libavformat will set it if the source is a demuxer that guarantees the
> propagation of complete frames, like mp4, Matroska and Ogg.
>

The flag should in a perfect world just be an optimization however,
and not be required for things to actually work. Otherwise that would
indicate a bug in the parser, or maybe a short-coming in the bitstream
format to not present frames properly?

- Hendrik


More information about the ffmpeg-devel mailing list