diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-06 00:31:25 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-10 00:21:48 +0200 |
commit | 22b0141d87e1b0d9c34251c8582bf7e2ab8e2265 (patch) | |
tree | f8ebe82c417ec2b7525d26fc47bc4bbd3bc9ea39 /libavcodec/aacdec_fixed.c | |
parent | d87c358ee6382bb72520c09fcefda95021bbdd61 (diff) | |
download | ffmpeg-22b0141d87e1b0d9c34251c8582bf7e2ab8e2265.tar.gz |
avcodec/mpegvideo_enc: Don't allocate buffers unnecessarily
ff_alloc_picture() performs two tasks: a) In most instances,
it allocates frame buffers and b) it allocates certain
auxiliary buffers.
The exception to a) is the case when the encoder can reuse
user-supplied frames. And for these frames the auxiliary buffers
are unused, because this frame will never be used as current_picture
(and therefore also not as next_picture or last_picture);
see select_input_picture().
This means that we can simply avoid calling ff_alloc_picture()
with user-supplied frames at all.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/aacdec_fixed.c')
0 files changed, 0 insertions, 0 deletions