ffmpeg | branch: master | Jan Gerber <j...@v2v.cc> | Mon Jul 21 19:39:02 2014 +0000| [fc27e7272e6f1a7053812f8a15b1b7098de44c71] | committer: Anton Khirnov
mpegts: do not export empty language tags Signed-off-by: Anton Khirnov <an...@khirnov.net> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc27e7272e6f1a7053812f8a15b1b7098de44c71 --- libavformat/mpegts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 5d8b08c..fb58e1f 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); } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog