aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorJan Gerber <j@v2v.cc>2014-07-21 19:39:02 +0000
committerAnton Khirnov <anton@khirnov.net>2014-07-21 19:39:31 +0000
commitfc27e7272e6f1a7053812f8a15b1b7098de44c71 (patch)
tree82ad6d180b62fa09de23636e0e878a31bd4bab6e /libavformat/mpegts.c
parent4d2d0595cf9dd199c35aefef450952d209a56573 (diff)
downloadffmpeg-fc27e7272e6f1a7053812f8a15b1b7098de44c71.tar.gz
mpegts: do not export empty language tags
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 5d8b08ce0c..fb58e1fc70 100644
--- a/libavformat/mpegts.c
+++ b/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);
}