aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarthick Jeyapal <kjeyapal@akamai.com>2018-10-10 12:50:20 +0530
committerKarthick Jeyapal <kjeyapal@akamai.com>2018-10-18 10:56:05 +0530
commit444cdb422d3ccc8f4946c0505c60e04cf652ef9a (patch)
tree6c7c4186b07353c8da99fd5213c17deb4338a69c
parentf72b9904fefa79d799d0f6ecc8bd97ce52658725 (diff)
downloadffmpeg-444cdb422d3ccc8f4946c0505c60e04cf652ef9a.tar.gz
avformat/dashenc: Dont ignore the codec tag from codec parameters
-rw-r--r--libavformat/dashenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 26a4dcea60..3f5f290e25 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -247,7 +247,9 @@ static void set_codec_str(AVFormatContext *s, AVCodecParameters *par,
else
return;
- tag = av_codec_get_tag(tags, par->codec_id);
+ tag = par->codec_tag;
+ if (!tag)
+ tag = av_codec_get_tag(tags, par->codec_id);
if (!tag)
return;
if (size < 5)