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"; }