diff options
author | Karthick Jeyapal | 2018-10-10 12:50:20 +0530 |
---|---|---|
committer | Karthick Jeyapal | 2018-10-18 10:56:05 +0530 |
commit | 444cdb422d3ccc8f4946c0505c60e04cf652ef9a (patch) | |
tree | 6c7c4186b07353c8da99fd5213c17deb4338a69c /libavformat/dashenc.c | |
parent | f72b9904fefa79d799d0f6ecc8bd97ce52658725 (diff) |
avformat/dashenc: Dont ignore the codec tag from codec parameters
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r-- | libavformat/dashenc.c | 4 |
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) |