mirror of https://git.ffmpeg.org/ffmpeg.git
fftools/ffmpeg: drop a useless goto
There is no cleanup in transcode(), can return an error directly.
This commit is contained in:
parent
5d4f467cc9
commit
f2c8dff906
|
@ -2905,7 +2905,7 @@ static int transcode(void)
|
||||||
|
|
||||||
ret = transcode_init();
|
ret = transcode_init();
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto fail;
|
return ret;
|
||||||
|
|
||||||
if (stdin_interaction) {
|
if (stdin_interaction) {
|
||||||
av_log(NULL, AV_LOG_INFO, "Press [q] to stop, [?] for help\n");
|
av_log(NULL, AV_LOG_INFO, "Press [q] to stop, [?] for help\n");
|
||||||
|
@ -2975,11 +2975,7 @@ static int transcode(void)
|
||||||
|
|
||||||
hw_device_free_all();
|
hw_device_free_all();
|
||||||
|
|
||||||
/* finished ! */
|
return 0;
|
||||||
ret = 0;
|
|
||||||
|
|
||||||
fail:
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static BenchmarkTimeStamps get_benchmark_time_stamps(void)
|
static BenchmarkTimeStamps get_benchmark_time_stamps(void)
|
||||||
|
|
Loading…
Reference in New Issue