mirror of https://github.com/mpv-player/mpv
sd_lavc: reduce unnecessary error log on probing nonexistent codecs
This commit is contained in:
parent
fc741dab1a
commit
91bb2f2543
|
@ -93,10 +93,10 @@ static int init(struct sd *sd)
|
||||||
AVCodecContext *ctx = NULL;
|
AVCodecContext *ctx = NULL;
|
||||||
const AVCodec *sub_codec = avcodec_find_decoder(cid);
|
const AVCodec *sub_codec = avcodec_find_decoder(cid);
|
||||||
if (!sub_codec)
|
if (!sub_codec)
|
||||||
goto error;
|
goto error_probe;
|
||||||
ctx = avcodec_alloc_context3(sub_codec);
|
ctx = avcodec_alloc_context3(sub_codec);
|
||||||
if (!ctx)
|
if (!ctx)
|
||||||
goto error;
|
goto error_probe;
|
||||||
|
|
||||||
mp_set_avopts(sd->log, ctx, sd->opts->sub_avopts);
|
mp_set_avopts(sd->log, ctx, sd->opts->sub_avopts);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue