[FFmpeg-devel] [PATCH 1/3] avformat/matroskadec: use refcounted buffers in EbmlBin

James Almer jamrial at gmail.com
Sat Apr 7 03:18:17 EEST 2018


On 4/4/2018 8:43 PM, James Almer wrote:
> Data in EbmlBin objects is never changed after being read from the
> input file (save for two specific cases with encoded CodePrivate), so
> using AVBufferRef we can prevent unnecessary copy of data by instead
> creating new references to said constant data.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> The CodecPrivate parts are untested, as there's no FATE coverage of them.
> 
>  libavformat/matroskadec.c | 44 +++++++++++++++++++++++++++++++-------------
>  1 file changed, 31 insertions(+), 13 deletions(-)

Pushed.


More information about the ffmpeg-devel mailing list