You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
fftools/ffmpeg: drop a useless goto
There is no cleanup in transcode(), can return an error directly.
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user