]> git.sesse.net Git - x264/commitdiff
mkv: Write the x264 version into the file header
authorAlexander Strange <astrange@ithinksw.com>
Sat, 13 Feb 2010 07:00:57 +0000 (02:00 -0500)
committerFiona Glaser <fiona@x264.com>
Mon, 15 Feb 2010 09:00:00 +0000 (01:00 -0800)
This only updates the "writing application"; matroska_ebml.c is the
"muxing application", but the version string for that is still hardcoded.

output/matroska.c

index db7639c7100b604d82ebc84777c25c8b6392dc5b..b1805e41c4c3170766f22fedde084553344a14b9 100644 (file)
@@ -146,7 +146,7 @@ static int write_headers( hnd_t handle, x264_nal_t *p_nal )
 
     memcpy( avcC+11+sps_size, pps, pps_size );
 
-    ret = mk_writeHeader( p_mkv->w, "x264", "V_MPEG4/ISO/AVC",
+    ret = mk_writeHeader( p_mkv->w, "x264" X264_VERSION, "V_MPEG4/ISO/AVC",
                           avcC, avcC_len, p_mkv->frame_duration, 50000,
                           p_mkv->width, p_mkv->height,
                           p_mkv->d_width, p_mkv->d_height );