[FFmpeg-cvslog] mpegts: do not export empty language tags

Jan Gerber git at videolan.org
Tue Jul 22 02:38:57 CEST 2014


ffmpeg | branch: master | Jan Gerber <j at 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 <anton at 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);
         }



More information about the ffmpeg-cvslog mailing list