diff options
author | jstebbins <[email protected]> | 2014-03-26 22:01:05 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-03-26 22:01:05 +0000 |
commit | 9dcb8cf25bf31c6c36a455493bd187b6f0d209bc (patch) | |
tree | 4bd9197e76ad5a99d8467a9a723ee28ec22cf66d | |
parent | 693288dbf2312846f0a8b3cebad7c404d89c6713 (diff) |
muxavformat: override mp4 major brand, use "mp42"
This fixes compatibility issues with Vegas Pro 8 NLE suite
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6132 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/muxavformat.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c index dea825fc2..478991363 100644 --- a/libhb/muxavformat.c +++ b/libhb/muxavformat.c @@ -143,6 +143,7 @@ static int avformatInit( hb_mux_object_t * m ) goto error; } + AVDictionary * av_opts = NULL; switch (job->mux) { case HB_MUX_AV_MP4: @@ -153,6 +154,10 @@ static int avformatInit( hb_mux_object_t * m ) else muxer_name = "mp4"; meta_mux = META_MUX_MP4; + + av_dict_set(&av_opts, "brand", "mp42", 0); + if (job->mp4_optimize) + av_dict_set( &av_opts, "movflags", "faststart", 0 ); break; case HB_MUX_AV_MKV: @@ -885,10 +890,6 @@ static int avformatInit( hb_mux_object_t * m ) HB_PROJECT_VERSION, HB_PROJECT_BUILD); av_dict_set(&m->oc->metadata, "encoding_tool", tool_string, 0); - AVDictionary * av_opts = NULL; - if (job->mp4_optimize && (job->mux & HB_MUX_MASK_MP4)) - av_dict_set( &av_opts, "movflags", "faststart", 0 ); - ret = avformat_write_header(m->oc, &av_opts); if( ret < 0 ) { |