diff options
author | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:22 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:22 +0000 |
commit | fd150eb62931bca0cc5767151d3b098e27eeb4cf (patch) | |
tree | 5205855bb15092dbacd7bd2a7471a8617563aa08 /libavformat/matroskaenc.c | |
parent | 55c151efb3c95136e34175320b2223eebb17f341 (diff) | |
download | ffmpeg-fd150eb62931bca0cc5767151d3b098e27eeb4cf.tar.gz |
Set the language to undefined if no language specified
Originally committed as revision 10345 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index a9104d4f3b..f445584bad 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -435,6 +435,8 @@ static int mkv_write_tracks(AVFormatContext *s) if (st->language[0]) put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, st->language); + else + put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, "und"); // look for a codec id string specific to mkv to use, if none are found, use AVI codes for (j = 0; ff_mkv_codec_tags[j].id != CODEC_ID_NONE; j++) { |