mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
mpegts: do not export empty language tags
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
4d2d0595cf
commit
fc27e7272e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user