]> git.sesse.net Git - x264/commitdiff
[mp4] ftyp & moov boxes at the begining of the file, (thanks to jeanlf
authorEric Petit <titer@videolan.org>
Fri, 15 Apr 2005 17:26:09 +0000 (17:26 +0000)
committerEric Petit <titer@videolan.org>
Fri, 15 Apr 2005 17:26:09 +0000 (17:26 +0000)
 for comments)

 patch by bobololo

git-svn-id: svn://svn.videolan.org/x264/trunk@206 df754926-b1dd-0310-bc7b-ec298dee348c

x264.c

diff --git a/x264.c b/x264.c
index ede67e593e0b216ab652d409b2ec02543194e937..c80b55d0b953652b68ad3267c6b57c1f9b16d300 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -1199,7 +1199,7 @@ static int close_file_mp4( hnd_t handle )
         recompute_bitrate_mp4(p_mp4->p_file, p_mp4->i_track);
         M4_SetMoviePLIndication(p_mp4->p_file, M4_PL_VISUAL, 0x15);
         M4_SetMovieVersionInfo(p_mp4->p_file, H264_AVC_File, 0);
-        M4_SetStorageMode(p_mp4->p_file, M4_FLAT);
+        M4_SetStorageMode(p_mp4->p_file, M4_STREAMABLE);
         M4_MovieClose(p_mp4->p_file);
     }
 
@@ -1218,7 +1218,7 @@ static int open_file_mp4( char *psz_filename, hnd_t *p_handle )
         return -1;
 
     memset(p_mp4, 0, sizeof(mp4_t));
-    p_mp4->p_file = M4_MovieOpen(psz_filename, M4_OPEN_WRITE);
+    p_mp4->p_file = M4_MovieOpen(psz_filename, M4_WRITE_EDIT);
 
     if ((p_mp4->p_sample = M4_NewSample()) == NULL)
     {