summaryrefslogtreecommitdiffstats
path: root/libhb/muxavformat.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-03-06 20:42:30 +0000
committerjstebbins <[email protected]>2014-03-06 20:42:30 +0000
commit8582a860d668535db09e80152a979d1b6d37db0b (patch)
treecbd2fb6923b3454122022a86a2bc540d948119a2 /libhb/muxavformat.c
parente3fa2d7ebb17007c226dab89d26730f061e95b8d (diff)
libhb: restore writing of encoding tool tag to output file
We lost this when switching to avformat for muxing git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6102 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxavformat.c')
-rw-r--r--libhb/muxavformat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
index a5ca6b5fa..d3c2cf56f 100644
--- a/libhb/muxavformat.c
+++ b/libhb/muxavformat.c
@@ -880,6 +880,11 @@ static int avformatInit( hb_mux_object_t * m )
}
}
+ char tool_string[80];
+ snprintf(tool_string, sizeof(tool_string), "HandBrake %s %i",
+ 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 );