Skip to content

Commit

Permalink
ad_spdif: add missing codec_desc initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed May 19, 2024
1 parent 0c85b99 commit e6e0aaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions audio/decode/ad_spdif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e6e0aaa

Please sign in to comment.