Browse Source

mpegts: do not export empty language tags

Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n2.4
Jan Gerber Anton Khirnov 11 years ago
parent
commit
fc27e7272e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpegts.c

+ 1
- 1
libavformat/mpegts.c 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);
}


Loading…
Cancel
Save