diff options
author | Jan Ekström | 2018-11-14 03:11:31 +0200 |
---|---|---|
committer | Jan Ekström | 2018-11-14 20:45:02 +0200 |
commit | b31a4be15f568c12be32dca87f066416e6adc8ad (patch) | |
tree | 1081ebb0d6ed7f6bf7d7e6be4391270382684354 /libavformat/dashenc.c | |
parent | 752659327d4ac73640781376d214a26765f971f4 (diff) |
lavf/dashenc: set FLAC manifest codec string to "flac"
Internally in ISOBMFF the FLAC-in-ISOBMFF draft uses "fLaC"
as the identifier for FLACSampleEntry, and there seems to be no
MPEG-DASH specification for the in-manifest identifier for FLAC.
After testing the browsers' implementations, it seems like all of
the major browser vendors have decided to utilize the MIME type for
FLAC ("audio/flac") as the identifier. This change set leads to
that string being utilized for FLAC streams instead of the sample
entry identifier ("fLaC"), which is the default behavior.
Verified by auri_ on IRC to play with the major browsers.
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r-- | libavformat/dashenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index f8b3d106d5..d151921175 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -143,6 +143,7 @@ static struct codec_string { { AV_CODEC_ID_VP9, "vp9" }, { AV_CODEC_ID_VORBIS, "vorbis" }, { AV_CODEC_ID_OPUS, "opus" }, + { AV_CODEC_ID_FLAC, "flac" }, { 0, NULL } }; |