mpegts: do not export empty language tags

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Jan Gerber 2014-07-21 19:39:02 +00:00 committed by Anton Khirnov
parent 4d2d0595cf
commit fc27e7272e

View File

@ -1412,7 +1412,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
break;
}
}
if (i) {
if (i && language[0]) {
language[i - 1] = 0;
av_dict_set(&st->metadata, "language", language, 0);
}