[FFmpeg-devel] [PATCH 3/3] lavf/dashenc: unset codec_tag when it doesn't match the underlying muxer
Rodger Combs
rodger.combs at gmail.com
Tue Sep 26 22:55:00 EEST 2017
---
libavformat/dashenc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 7ed48905f5..3a4b6478d1 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -763,6 +763,11 @@ static int dash_init(AVFormatContext *s)
ctx->avoid_negative_ts = s->avoid_negative_ts;
ctx->flags = s->flags;
+ if (ctx->oformat->codec_tag &&
+ av_codec_get_id (ctx->oformat->codec_tag, st->codecpar->codec_tag) != st->codecpar->codec_id &&
+ av_codec_get_tag(ctx->oformat->codec_tag, st->codecpar->codec_id) != 0)
+ st->codecpar->codec_tag = 0;
+
if ((ret = avio_open_dyn_buf(&ctx->pb)) < 0)
return ret;
--
2.14.1
More information about the ffmpeg-devel
mailing list