OSDN Git Service

Fill in the "Encoded By:" tag in MP4 files with "HandBrake" followed by the version...
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 4 Jan 2008 18:37:03 +0000 (18:37 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 4 Jan 2008 18:37:03 +0000 (18:37 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1164 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/muxmp4.c

index 0e7cf12..2a39d05 100644 (file)
@@ -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;
 }