File: init-for-valgrind.patch

package info (click to toggle)
oggvideotools 0.9.1-7.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,672 kB
  • sloc: cpp: 11,325; ansic: 530; sh: 124; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Initialize TheoraStreamParameter::colorspace.
 Avoid warning from valgrind about making decisions based on uninitialized
 values by making sure to initialize TheoraStreamParameter::colorspace to
 unspecified when creating a new object.
Author: Petter Reinholdtsen <pere@hungry.com>
Forwarded: no
Reviewed-By: Petter Reinholdtsen <pere@hungry.com>
Last-Update: 2016-05-24

--- oggvideotools-0.9.orig/src/ovt_theora/theoraStreamParameter.cpp
+++ oggvideotools-0.9/src/ovt_theora/theoraStreamParameter.cpp
@@ -5,6 +5,7 @@
 #include "log.h"
 
 TheoraStreamParameter::TheoraStreamParameter()
+  : colorspace(unspecified)
 {
 }