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
93 AVCodecContext *ctx = NULL;93 AVCodecContext *ctx = NULL;
94 const AVCodec *sub_codec = avcodec_find_decoder(cid);94 const AVCodec *sub_codec = avcodec_find_decoder(cid);
95 if (!sub_codec)95 if (!sub_codec)
96 goto error;96 goto error_probe;
97 ctx = avcodec_alloc_context3(sub_codec);97 ctx = avcodec_alloc_context3(sub_codec);
98 if (!ctx)98 if (!ctx)
99 goto error;99 goto error_probe;
100 100
101 mp_set_avopts(sd->log, ctx, sd->opts->sub_avopts);101 mp_set_avopts(sd->log, ctx, sd->opts->sub_avopts);
102 102

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