From c6f3d17ffa67ad27f126bf579a08a443023ad0d3 Mon Sep 17 00:00:00 2001 From: Eric Petit Date: Fri, 15 Apr 2005 17:26:09 +0000 Subject: [PATCH] [mp4] ftyp & moov boxes at the begining of the file, (thanks to jeanlf for comments) patch by bobololo git-svn-id: svn://svn.videolan.org/x264/trunk@206 df754926-b1dd-0310-bc7b-ec298dee348c --- x264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x264.c b/x264.c index ede67e59..c80b55d0 100644 --- 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) { -- 2.40.0