[FFmpeg-devel] [PATCH 05/11] avcodec/h264_parser: Reuse the RBSP buffer

Anton Khirnov anton at khirnov.net
Mon Jun 22 12:15:23 EEST 2020


Quoting Andreas Rheinhardt (2020-05-29 17:52:40)
> Ping. What is other's opinion on this matter? Notice that the current
> behaviour is suboptimal even if it is decided that the buffer should not
> be kept: It allocates 1/16 more than needed (in addition to
> AV_INPUT_BUFFER_PADDING_SIZE) that is guaranteed not to be used; and it
> uses mallocz for the allocation.

Random idea: free the buffer on every IDR? Not super optimal, but simple
to implement.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list