diff options
-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) |