mirror of https://github.com/mpv-player/mpv
recorder: fix codec_tag / codec_id confusion
This commit is contained in:
parent
643c699f26
commit
c68b9424d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue