recorder: fix codec_tag / codec_id confusion

This commit is contained in:
TheAMM 2021-05-25 00:48:40 +03:00 committed by sfan5
parent 643c699f26
commit c68b9424d6
1 changed files with 2 additions and 2 deletions

View File

@ -91,10 +91,10 @@ static int add_stream(struct mp_recorder *priv, struct sh_stream *sh)
if (!avp)
return -1;
// Check if we get the same codec_tag for the output format;
// Check if we get the same codec_id for the output format;
// otherwise clear it to have a chance at muxing
if (av_codec_get_id(priv->mux->oformat->codec_tag,
avp->codec_tag) != avp->codec_tag)
avp->codec_tag) != avp->codec_id)
avp->codec_tag = 0;
// We don't know the delay, so make something up. If the format requires