media/libmkv/const_fix.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libmkv/const_fix.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +diff --git a/WebMElement.c b/WebMElement.c
     1.5 +--- a/WebMElement.c
     1.6 ++++ b/WebMElement.c
     1.7 +@@ -56,7 +56,7 @@
     1.8 + }
     1.9 + 
    1.10 + void writeVideoTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
    1.11 +-                     char *codecId, unsigned int pixelWidth, unsigned int pixelHeight,
    1.12 ++                     const char *codecId, unsigned int pixelWidth, unsigned int pixelHeight,
    1.13 +                      double frameRate) {
    1.14 +   EbmlLoc start;
    1.15 +   UInt64 trackID;
    1.16 +@@ -79,7 +79,7 @@
    1.17 +   Ebml_EndSubElement(glob, &start); // Track Entry
    1.18 + }
    1.19 + void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
    1.20 +-                     char *codecId, double samplingFrequency, unsigned int channels,
    1.21 ++                     const char *codecId, double samplingFrequency, unsigned int channels,
    1.22 +                      unsigned char *private, unsigned long privateSize) {
    1.23 +   EbmlLoc start;
    1.24 +   UInt64 trackID;
    1.25 +diff --git a/WebMElement.h b/WebMElement.h
    1.26 +--- a/WebMElement.h
    1.27 ++++ b/WebMElement.h
    1.28 +@@ -20,10 +20,10 @@
    1.29 + void writeSegmentInformation(EbmlGlobal *ebml, EbmlLoc *startInfo, unsigned long timeCodeScale, double duration);
    1.30 + // this function is a helper only, it assumes a lot of defaults
    1.31 + void writeVideoTrack(EbmlGlobal *ebml, unsigned int trackNumber, int flagLacing,
    1.32 +-                     char *codecId, unsigned int pixelWidth, unsigned int pixelHeight,
    1.33 ++                     const char *codecId, unsigned int pixelWidth, unsigned int pixelHeight,
    1.34 +                      double frameRate);
    1.35 + void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
    1.36 +-                     char *codecId, double samplingFrequency, unsigned int channels,
    1.37 ++                     const char *codecId, double samplingFrequency, unsigned int channels,
    1.38 +                      unsigned char *private_, unsigned long privateSize);
    1.39 + 
    1.40 + void writeSimpleBlock(EbmlGlobal *ebml, unsigned char trackNumber, short timeCode,

mercurial