You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
fftools/ffmpeg: remove an unnecessary avcodec_close() call
No encoders can possibly be opened at this point. And even if some were, they would be closed in ffmpeg_cleanup().
This commit is contained in:
@@ -3344,13 +3344,8 @@ static int transcode_init(void)
|
|||||||
|
|
||||||
/* init input streams */
|
/* init input streams */
|
||||||
for (i = 0; i < nb_input_streams; i++)
|
for (i = 0; i < nb_input_streams; i++)
|
||||||
if ((ret = init_input_stream(i, error, sizeof(error))) < 0) {
|
if ((ret = init_input_stream(i, error, sizeof(error))) < 0)
|
||||||
for (i = 0; i < nb_output_streams; i++) {
|
|
||||||
ost = output_streams[i];
|
|
||||||
avcodec_close(ost->enc_ctx);
|
|
||||||
}
|
|
||||||
goto dump_format;
|
goto dump_format;
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialize stream copy and subtitle/data streams.
|
* initialize stream copy and subtitle/data streams.
|
||||||
|
Reference in New Issue
Block a user