[FFmpeg-devel] [PATCH 2/2] libx264: Pass the reordered_opaque field through the encoder

Derek Buitenhuis derek.buitenhuis at gmail.com
Tue Oct 30 18:39:16 EET 2018


On 29/10/2018 21:06, Martin Storsjö wrote:
> As I guess there can be old frames in flight, the only safe option is to
> enlarge, not to shrink it. But in case a realloc moves the array, the old
> pointers end up pretty useless.

Just always allocate the max (which is known for H.264), and adjust nb_reordered_opaque
as need be, on reconfig, no?

- Derek


More information about the ffmpeg-devel mailing list