mpegts: do not export empty language tags

Signed-off-by: Anton Khirnov <anton@khirnov.net>
pull/79/head
Jan Gerber 11 years ago committed by Anton Khirnov
parent 4d2d0595cf
commit fc27e7272e
  1. 2
      libavformat/mpegts.c

@ -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…
Cancel
Save