summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-01-04 18:37:03 +0000
committerjbrjake <[email protected]>2008-01-04 18:37:03 +0000
commit662170dabf85e8b443141fa22abd468800db77b5 (patch)
tree8acb19b867875f7d8604deb47f546328996d9f7f /libhb
parent63730c9e52cf93947a9a0798eba9a8e4d637f8a6 (diff)
Fill in the "Encoded By:" tag in MP4 files with "HandBrake" followed by the version number and build date. Thanks for making me aware that libmp4v2 had an MP4SetMetadataTool() function, realityking.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1164 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/muxmp4.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/muxmp4.c b/libhb/muxmp4.c
index 0e7cf123c..2a39d0542 100644
--- a/libhb/muxmp4.c
+++ b/libhb/muxmp4.c
@@ -353,6 +353,13 @@ static int MP4Init( hb_mux_object_t * m )
m->current_chapter = job->chapter_start;
}
+ /* Add encoded-by metadata listing version and build date */
+ char *tool_string;
+ tool_string = (char *)malloc(80);
+ snprintf( tool_string, 80, "HandBrake %s %i", HB_VERSION, HB_BUILD);
+ MP4SetMetadataTool(m->file, tool_string);
+ free(tool_string);
+
return 0;
}