diff mbox

[FFmpeg-devel] added possibility to set first to ninth audio language for RIFF taged files (e.g. avi files)

Message ID 576dc4b9-2783-7ae6-0b34-b169f89c0377@gmx.net
State Superseded
Headers show

Commit Message

floriandiemer@gmx.net Oct. 2, 2016, 2:43 p.m. UTC
---
According to this page 
(http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/RIFF.html#Info) 
it is possible
to add language information ("IAS1" (first language) to "IAS9" (ninth 
language)) to RIFF tagged files (as RIFF Info Tags).
Programs such as VLC media player or MediaInfo can properly read and 
display this information. Allowing to set this tags
with the -metadata option while encoding, would simplify the process.
---
libavformat/riffenc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

{ 0 }
diff mbox

Patch

diff --git a/libavformat/riffenc.c b/libavformat/riffenc.c
index 36e6ac7..4b25c06 100644
--- a/libavformat/riffenc.c
+++ b/libavformat/riffenc.c
@@ -304,7 +304,8 @@  void ff_riff_write_info_tag(AVIOContext *pb, const 
char *tag, const char *str)
}

static const char riff_tags[][5] = {
- "IARL", "IART", "ICMS", "ICMT", "ICOP", "ICRD", "ICRP", "IDIM", "IDPI",
+ "IARL", "IART", "IAS1", "IAS2", "IAS3", "IAS4", "IAS5", "IAS6", "IAS7",
+ "IAS8", "IAS9", "ICMS", "ICMT", "ICOP", "ICRD", "ICRP", "IDIM", "IDPI",
"IENG", "IGNR", "IKEY", "ILGT", "ILNG", "IMED", "INAM", "IPLT", "IPRD",
"IPRT", "ITRK", "ISBJ", "ISFT", "ISHP", "ISMP", "ISRC", "ISRF", "ITCH",