diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-25 18:00:25 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-29 01:38:30 +0100 |
commit | 074d8343d6ffd67985f71494753bbc2f78e58e6a (patch) | |
tree | 2c6e7319ec912d00df6230b03f529e4296ffc62e /fftools/cmdutils.c | |
parent | f8360ed629c81bc623eb49202e2340ebb1e245d1 (diff) | |
download | ffmpeg-074d8343d6ffd67985f71494753bbc2f78e58e6a.tar.gz |
avcodec/mpegvideo_enc: Don't use unnecessarily much stack
encode_thread() puts two MPVEncContexts (2*6516B here)
on the stack and zeroes one of them in order to
temporarily store the variables that get changed
during encoding a macroblock (when there is more than
one candidate type for a macroblock). This is wasteful
and therefore this commit adds a small (328B here) structure
to store exactly the fields that actually need to be backed
up. Then one can extend MPVEncContext without fearing
too use up to much stack.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools/cmdutils.c')
0 files changed, 0 insertions, 0 deletions