summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-29 15:56:03 +0100
committerLuca Barbato <lu_zero@gentoo.org>2014-03-31 19:31:41 +0200
commitf94371b1db89bf65173a763a49175ce549466602 (patch)
treed373bcd487268bcc9f07a508d34de51476ae011b /libavformat
parent654c7446a806c5dc8ec7800874c49a4c1ba2ce80 (diff)
mov: Unbreak sbtl writing
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index a6a55d58fb..889f15c8e9 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -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";