diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2024-08-02 16:44:21 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-08-17 12:54:41 +0200 |
commit | a31106d84976bd28e56de35ee8085eebfc6c5e4d (patch) | |
tree | fea0891906a324beaf852bee7873664eb0a19ac4 /fftools/cmdutils.c | |
parent | c779766b5cb940fdf2170c1ad12eacaf62eaf1d0 (diff) | |
download | ffmpeg-a31106d84976bd28e56de35ee8085eebfc6c5e4d.tar.gz |
lavf/demux: don't reallocate a AVCodecContext when closing a non-open codec.
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@chromium.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'fftools/cmdutils.c')
0 files changed, 0 insertions, 0 deletions