History

sd_lavc: reduce unnecessary error log on probing nonexistent codecs

nanahi committed 2 years ago

Commit 91bb2f21 parent fc741da1 file · +2 −2Browse files

Unified · Split

sub/sd_lavc.c+2−2
@@ -93,10 +93,10 @@ static int init(struct sd *sd) · 92 unmodified lines
9393 AVCodecContext *ctx = NULL;
9494 const AVCodec *sub_codec = avcodec_find_decoder(cid);
9595 if (!sub_codec)
96− goto error;
96+ goto error_probe;
9797 ctx = avcodec_alloc_context3(sub_codec);
9898 if (!ctx)
99− goto error;
99+ goto error_probe;
100100
101101 mp_set_avopts(sd->log, ctx, sd->opts->sub_avopts);
102102

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