Changeset a31106d8 in ffmpeg

Timestamp:
Aug 17, 2024, 10:54:41 AM (4 months ago)
Author:
Anton Khirnov <anton@khirnov.net>
Branches:
master
Children:
5c1c0325
Parents:
c779766
git-author:
Dale Curtis <dalecurtis@chromium.org> (08/02/24 16:44:21)
git-committer:
Anton Khirnov <anton@khirnov.net> (08/17/24 10:54:41)
Message:

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>

(No files)

Note: See TracChangeset for help on using the changeset viewer.