]> granicus.if.org Git - libvpx/commitdiff
Fix encoder debug setting
authorJohann <johannkoenig@google.com>
Fri, 2 Mar 2012 00:12:53 +0000 (16:12 -0800)
committerJohann <johannkoenig@google.com>
Fri, 2 Mar 2012 00:12:53 +0000 (16:12 -0800)
Propagate debug setting to the EBML struct. When writing the application
name, this allows us to strip the version code and keep the output
metadata static.

Change-Id: I8e06c6abd743bedbff5af6242bbdae5d55754538

vpxenc.c

index 0480fbdc0ef9bf42abfa35711e9870e75fcf6f2a..e8b82619b7a65a39ea75043af9a78e0c20743517 100644 (file)
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -1740,6 +1740,9 @@ static struct stream_state *new_stream(struct global_config *global,
         stream->config.stereo_fmt = STEREO_FORMAT_MONO;
         stream->config.write_webm = 1;
         stream->ebml.last_pts_ms = -1;
+
+        /* Allows removal of the application version from the EBML tags */
+        stream->ebml.debug = global->debug;
     }
 
     /* Output files must be specified for each stream */