mirror of https://github.com/FFmpeg/FFmpeg.git
It is currently done inconsistently: Only one error path (namely the one from init_pass2()) made ff_rate_control_init() call ff_rate_control_uninit(); in other error paths cleanup was left to the caller. Given that the only caller of this function already performs the necessary cleanup this commit changes this to always rely on the caller to perform cleanup on error. Also return the error code from init_pass2(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>release/7.1
parent
0c9e04b0e2
commit
68a06640b1
1 changed files with 3 additions and 4 deletions
Loading…
Reference in new issue