[FFmpeg-cvslog] fftools/ffmpeg: stop explicitly closing decoders
Anton Khirnov
git at videolan.org
Mon Nov 28 11:33:09 EET 2022
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Nov 17 11:59:55 2022 +0100| [630fbdcc526c919986ff8ccc6712653ff1ef637b] | committer: Anton Khirnov
fftools/ffmpeg: stop explicitly closing decoders
It serves no purpose, they will be closed and freed in
avcodec_free_context() called from ist_free().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=630fbdcc526c919986ff8ccc6712653ff1ef637b
---
fftools/ffmpeg.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 3767ab444b..ba91af2c95 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -3908,13 +3908,6 @@ static int transcode(void)
exit_program(1);
}
- /* close each decoder */
- for (ist = ist_iter(NULL); ist; ist = ist_iter(ist)) {
- if (ist->decoding_needed) {
- avcodec_close(ist->dec_ctx);
- }
- }
-
hw_device_free_all();
/* finished ! */
More information about the ffmpeg-cvslog
mailing list