[FFmpeg-devel] [PATCH] Don't reallocate a AVCodecContext when closing a non-open codec.
Dale Curtis
dalecurtis at chromium.org
Fri Aug 2 19:54:04 EEST 2024
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(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_realloc_v1.patch
Type: application/octet-stream
Size: 1153 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240802/7706131f/attachment.obj>
More information about the ffmpeg-devel
mailing list