movenc: Allow chapter track in default MODE_MP4
authorJohn Stebbins <stebbins@jetheaddev.com>
Mon, 19 Aug 2013 23:05:29 +0000 (16:05 -0700)
committerMartin Storsjö <martin@martin.st>
Tue, 20 Aug 2013 14:18:42 +0000 (15:18 +0100)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/movenc.c

index b83b0c09e2890abb3344ce2aba3d288ed5b40e57..3338f46e268a823bc945950999899f35ec69a22d 100644 (file)
@@ -3059,7 +3059,7 @@ static int mov_write_header(AVFormatContext *s)
     }
 
     mov->nb_streams = s->nb_streams;
-    if (mov->mode & (MODE_MOV|MODE_IPOD) && s->nb_chapters)
+    if (mov->mode & (MODE_MP4|MODE_MOV|MODE_IPOD) && s->nb_chapters)
         mov->chapter_track = mov->nb_streams++;
 
     if (mov->flags & FF_MOV_FLAG_RTP_HINT) {