mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/383/head
parent
8ca7d474c1
commit
0b670a7f91
3 changed files with 6 additions and 7 deletions
Loading…
Reference in new issue