1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-11 17:39:38 +00:00

ad_spdif: add missing codec_desc initialization

This commit is contained in:
Kacper Michajłow 2024-05-19 20:24:31 +02:00
parent 0c85b9915f
commit e6e0aaa6c6

View File

@ -446,6 +446,10 @@ static struct mp_decoder *create(struct mp_filter *parent,
return NULL;
}
const AVCodecDescriptor *desc = avcodec_descriptor_get(spdif_ctx->codec_id);
if (desc)
codec->codec_desc = desc->long_name;
return &spdif_ctx->public;
}