From 91bb2f25434235cdff19107a696ce4481948de14 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Thu, 2 May 2024 10:18:26 -0400 Subject: [PATCH] sd_lavc: reduce unnecessary error log on probing nonexistent codecs --- sub/sd_lavc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index d631d7399e..6c1bdf550e 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -93,10 +93,10 @@ static int init(struct sd *sd) AVCodecContext *ctx = NULL; const AVCodec *sub_codec = avcodec_find_decoder(cid); if (!sub_codec) - goto error; + goto error_probe; ctx = avcodec_alloc_context3(sub_codec); if (!ctx) - goto error; + goto error_probe; mp_set_avopts(sd->log, ctx, sd->opts->sub_avopts);