mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
recorder: fix codec_tag / codec_id confusion
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user