From 8a9d0a1561470a185a3d09676fcf9b44830a4bfe Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 29 Mar 2014 15:38:20 +0100 Subject: [PATCH] avformat/movenc: fix if vs if else Signed-off-by: Michael Niedermayer --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 3ec4983f02..da533e1cec 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1590,7 +1590,7 @@ static int mov_write_hdlr_tag(AVIOContext *pb, MOVTrack *track) descr = "ClosedCaptionHandler"; } else { if (track->tag == MKTAG('t','x','3','g')) hdlr_type = "sbtl"; - if (track->tag == MKTAG('m','p','4','s')) hdlr_type = "subp"; + else if (track->tag == MKTAG('m','p','4','s')) hdlr_type = "subp"; else hdlr_type = "text"; descr = "SubtitleHandler"; }