Commit fc27e727 authored by Jan Gerber's avatar Jan Gerber Committed by Anton Khirnov

mpegts: do not export empty language tags

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 4d2d0595
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment