mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 11:30:08 +01: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:
@@ -3908,13 +3908,6 @@ static int transcode(void)
|
|||||||
exit_program(1);
|
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();
|
hw_device_free_all();
|
||||||
|
|
||||||
/* finished ! */
|
/* finished ! */
|
||||||
|
|||||||
Reference in New Issue
Block a user