Re: [FFmpeg-devel] [PATCH 01/14] avcodec/mjpegenc: Use custom close function directly

2021-12-31 Thread Andreas Rheinhardt
Andreas Rheinhardt: > 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 f

[FFmpeg-devel] [PATCH 01/14] avcodec/mjpegenc: Use custom close function directly

2021-12-21 Thread Andreas Rheinhardt
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