diff options
author | Jan Gerber <j@v2v.cc> | 2014-07-20 10:36:51 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-20 14:03:00 +0200 |
commit | 73b7a360d8a3f1a3ff99b2e0342bdf2e2acf8508 (patch) | |
tree | 154c6378c82d4ec1ee41515d30571275658ca78c | |
parent | 729479a199a9e5299e34074efdf5ce68fe4565d3 (diff) | |
download | ffmpeg-73b7a360d8a3f1a3ff99b2e0342bdf2e2acf8508.tar.gz |
matroskaenc: Don't set language to empty string, use "und"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 92d091f7cf..3488ffe5c9 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -737,7 +737,7 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, put_ebml_string(pb, MATROSKA_ID_TRACKNAME, tag->value); tag = av_dict_get(st->metadata, "language", NULL, 0); if (mkv->mode != MODE_WEBM || codec->codec_id != AV_CODEC_ID_WEBVTT) { - put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, tag ? tag->value:"und"); + put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, tag && tag->value ? tag->value:"und"); } else if (tag && tag->value) { put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, tag->value); } |