[FFmpeg-devel] [PATCH] Don't reallocate a AVCodecContext when closing a non-open codec.
    Anton Khirnov 
    anton at khirnov.net
       
    Sat Aug 17 13:56:49 EEST 2024
    
    
  
Quoting Dale Curtis (2024-08-02 18:54:04)
> This results in an unnecessary ~800k allocation with H.264. A
> nearby callsite uses avcodec_is_open() to avoid this, so do the
> same when exiting avformat_find_stream_info().
> 
> Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
> ---
>  libavformat/demux.c | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
LGTM, pushed
-- 
Anton Khirnov
    
    
More information about the ffmpeg-devel
mailing list