1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

fftools/ffmpeg: stop explicitly closing decoders

It serves no purpose, they will be closed and freed in
avcodec_free_context() called from ist_free().
This commit is contained in:
Anton Khirnov 2022-11-17 11:59:55 +01:00
parent e8e9950f2a
commit 630fbdcc52

View File

@ -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 ! */