diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-29 08:13:01 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-21 04:48:02 +0200 |
commit | 0154fb43e328b13da8943e66b38dc1b5ab9315af (patch) | |
tree | 0aee017362b995fc39b925bb0253ccdc71757cf2 /libavformat/mgsts.c | |
parent | d0de80ee44ae6b041776e82b502a8071b5584bdf (diff) | |
download | ffmpeg-0154fb43e328b13da8943e66b38dc1b5ab9315af.tar.gz |
avcodec/mpegvideo: Allocate encoder-only tables in mpegvideo_enc.c
This commit moves the encoder-only allocations of the tables
owned solely by the main encoder context to mpegvideo_enc.c.
This avoids checks in mpegvideo.c for whether we are dealing
with an encoder; it also improves modularity (if encoders are
disabled, this code will no longer be included in the binary).
And it also avoids having to reset these pointers at the beginning
of ff_mpv_common_init() (in case the dst context is uninitialized,
ff_mpeg_update_thread_context() simply copies the src context
into dst which therefore may contain pointers not owned by it,
but this does not happen for encoders at all).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mgsts.c')
0 files changed, 0 insertions, 0 deletions