summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorTheAMM <the.actual.amm@gmail.com>2021-05-25 00:48:40 +0300
committersfan5 <sfan5@live.de>2021-05-26 17:57:24 +0200
commitc68b9424d69a6e74bea46e283eca18de6596d51f (patch)
treed8d828a0255c471cf3464ab9748595cf2afd569b /common
parent643c699f2684987db6073ebe8a6ea76e56c87055 (diff)
downloadmpv-c68b9424d69a6e74bea46e283eca18de6596d51f.tar.bz2
mpv-c68b9424d69a6e74bea46e283eca18de6596d51f.tar.xz
recorder: fix codec_tag / codec_id confusion
Diffstat (limited to 'common')
-rw-r--r--common/recorder.c4
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