aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/cmdutils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-25 18:00:25 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-29 01:38:30 +0100
commit074d8343d6ffd67985f71494753bbc2f78e58e6a (patch)
tree2c6e7319ec912d00df6230b03f529e4296ffc62e /fftools/cmdutils.c
parentf8360ed629c81bc623eb49202e2340ebb1e245d1 (diff)
downloadffmpeg-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