mov: Unbreak sbtl writing
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Mar 2014 14:56:03 +0000 (15:56 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 31 Mar 2014 17:31:41 +0000 (19:31 +0200)
libavformat/movenc.c

index a6a55d5..889f15c 100644 (file)
@@ -1312,9 +1312,13 @@ static int mov_write_hdlr_tag(AVIOContext *pb, MOVTrack *track)
             hdlr_type = "soun";
             descr     = "SoundHandler";
         } else if (track->enc->codec_type == AVMEDIA_TYPE_SUBTITLE) {
-            if (track->tag == MKTAG('t','x','3','g')) hdlr_type = "sbtl";
-            if (track->tag == MKTAG('m','p','4','s')) hdlr_type = "subp";
-            else                                      hdlr_type = "text";
+            if (track->tag == MKTAG('t','x','3','g')) {
+                hdlr_type = "sbtl";
+            } else if (track->tag == MKTAG('m','p','4','s')) {
+                hdlr_type = "subp";
+            } else {
+                hdlr_type = "text";
+            }
             descr = "SubtitleHandler";
         } else if (track->enc->codec_tag == MKTAG('r','t','p',' ')) {
             hdlr_type = "hint";