aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-06-13 06:10:27 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-06-21 22:08:52 +0200
commitc4ebe55f94ff9e55bada7dbe9ff2fb9e75d85800 (patch)
treeb2b9dda25097f2d8788c2803afad6db6a086a184 /libavcodec/utils.c
parentdba1061ba456701fcef17f52ac673687440bd966 (diff)
downloadffmpeg-c4ebe55f94ff9e55bada7dbe9ff2fb9e75d85800.tar.gz
avcodec/mpegvideo: Allocate ac_val jointly
They are currently allocated separately per slice; allocating them jointly allows to avoid saving them in ff_update_duplicate_context(). The way it is done also avoids allocating ac_val for encoders that don't need it (e.g. H.263 or H.263+ with AIC). This entailed moving setting nb_slices to ff_mpv_init_context_frame() which is called from ff_mpv_common_frame_size_change(). The resultant nb_slices will always be one when called from a decoder using ff_mpv_common_frame_size_change(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/utils.c')
0 files changed, 0 insertions, 0 deletions