History

fftools/ffmpeg: remove useless error check

When ret is checked here, it was never assigned anything, making this check useless, as highlighted by Coverity. It seems to be a copy paste mistake given that opt_match_per_stream_str does not return an error code that could be checked and the previous value assigned to ret is already checked above. So just remove this check.

Marvin Scholz committed 2 years ago

Commit 504c1ff1 parent 2e915321 file · +0 −2Browse files

Unified · Split

fftools/ffmpeg_mux_init.c+0−2
@@ -1315,8 +1315,6 @@ static int ost_add(Muxer *mux, const OptionsContext *o, enum AVMediaType type, · 1314 unmodified lines
13151315 const char *format = "{fidx} {sidx} {n} {t}";
13161316
13171317 opt_match_per_stream_str(ost, &o->enc_stats_pre_fmt, oc, st, &format);
1318− if (ret < 0)
1319− goto fail;
13201318
13211319 ret = enc_stats_init(ost, &ost->enc_stats_pre, 1, enc_stats_pre, format);
13221320 if (ret < 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t