[FFmpeg-devel] Can BSF delay packets?

Ronald S. Bultje rsbultje at gmail.com
Mon Feb 6 19:41:17 EET 2017

Hi Aleksey,

On Mon, Feb 6, 2017 at 12:14 PM, Aleksey M <hex000 at gmail.com> wrote:

> Ronald,
> I looked the vp9_superframe_bsf.c code, but it doesn't help: The only place
> which returns EAGAIN does output packet unref and frees input packet.
> I tried memset zero on output packet, av_packet_unref, setting out->size =
> 0 and out->side_data_elems = 0, tried to return EAGAIN or 0, nothing helps.
> In any case, "timestamps are not set", "stream is malformed", like the
> output packet is still used.

As frustrating as this may sound, vp9_superframe_bsf does what you're
asking for, so your best bet is to emulate what it's doing and figure out
why your code does not invoke the same code path.


More information about the ffmpeg-devel mailing list