diff options
author | TheAMM <the.actual.amm@gmail.com> | 2021-05-25 00:48:40 +0300 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-05-26 17:57:24 +0200 |
commit | c68b9424d69a6e74bea46e283eca18de6596d51f (patch) | |
tree | d8d828a0255c471cf3464ab9748595cf2afd569b | |
parent | 643c699f2684987db6073ebe8a6ea76e56c87055 (diff) | |
download | mpv-c68b9424d69a6e74bea46e283eca18de6596d51f.tar.bz2 mpv-c68b9424d69a6e74bea46e283eca18de6596d51f.tar.xz |
recorder: fix codec_tag / codec_id confusion
-rw-r--r-- | common/recorder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/recorder.c b/common/recorder.c index 63e4163303..aad9faf40c 100644 --- a/common/recorder.c +++ b/common/recorder.c @@ -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 |