aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegenc_common.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-21 21:23:00 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-04 16:28:54 +0100
commit0b670a7f915fd4fa86444da7c24f325d651b16bd (patch)
tree6df01b6bd9ad25a3594747970e55e71a06b09d17 /libavcodec/mjpegenc_common.c
parent8ca7d474c19f856b28fa588e040b23b1a58368ed (diff)
downloadffmpeg-0b670a7f915fd4fa86444da7c24f325d651b16bd.tar.gz
avcodec/mjpegenc: Use custom close function directly
Currently, ff_mpv_encode_end() is the close function of the two MJPEG-based encoders; it calls ff_mjpeg_encode_close() for them which adds a check to the generic code. This commit reverses the order of this relationship: The MJPEG encoders directly use a custom close function which in turn calls ff_mpv_encode_end(). This avoids the branch in ff_mpv_encode_end() and makes the generic code more generic. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mjpegenc_common.c')
0 files changed, 0 insertions, 0 deletions