[FFmpeg-devel] [PATCH 2/2] avformat/mux: split side data before internal auto BSF

James Almer jamrial at gmail.com
Fri Nov 4 17:57:39 EET 2016

On 11/4/2016 9:43 AM, Michael Niedermayer wrote:
> The bitstream filters do not work with merged in side data
> This leaves the input packet split if it is being split.
> It could be merged again, if thats preferred ? That would involve
> an extra malloc and memcpy though

Since side data is being split and merged at a latter point during
av_interleaved_write_frame() and av_write_frame() calls, maybe we
could just move the relevant code before the autobsf kicks in.

See attached patch. FATE passes and the sample from ticket 5927
works with autobsf, same as with your patch.
It doesn't change ffmpeg.c manual bsf's behavior, though. For that
your commit from yesterday is still needed.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-mux-split-side-data-earlier-in-av_write_fra.patch
Type: text/x-patch
Size: 2999 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161104/e43f5a9c/attachment.bin>

More information about the ffmpeg-devel mailing list