summaryrefslogtreecommitdiffstats
path: root/libhb/muxavformat.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-03-26 22:01:05 +0000
committerjstebbins <[email protected]>2014-03-26 22:01:05 +0000
commit9dcb8cf25bf31c6c36a455493bd187b6f0d209bc (patch)
tree4bd9197e76ad5a99d8467a9a723ee28ec22cf66d /libhb/muxavformat.c
parent693288dbf2312846f0a8b3cebad7c404d89c6713 (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
Diffstat (limited to 'libhb/muxavformat.c')
-rw-r--r--libhb/muxavformat.c9
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 )
{