[FFmpeg-cvslog] avformat/dashenc: Dont ignore the codec tag from codec parameters
Karthick Jeyapal
git at videolan.org
Thu Oct 18 08:33:02 EEST 2018
ffmpeg | branch: master | Karthick Jeyapal <kjeyapal at akamai.com> | Wed Oct 10 13:08:20 2018 +0530| [444cdb422d3ccc8f4946c0505c60e04cf652ef9a] | committer: Karthick Jeyapal
avformat/dashenc: Dont ignore the codec tag from codec parameters
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=444cdb422d3ccc8f4946c0505c60e04cf652ef9a
---
libavformat/dashenc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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)
More information about the ffmpeg-cvslog
mailing list