From ab0b5f5ff388f70a81b4497beef6d7562ebc4068 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 23 Nov 2011 15:17:30 +0000 Subject: [PATCH] Make input mapping parameter const in multistream API --- include/opus_multistream.h | 8 ++++---- src/opus_multistream.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/opus_multistream.h b/include/opus_multistream.h index 1fdb881c..d5217b1d 100644 --- a/include/opus_multistream.h +++ b/include/opus_multistream.h @@ -55,7 +55,7 @@ OPUS_EXPORT OpusMSEncoder *opus_multistream_encoder_create( int channels, /**< Number of channels in the input signal */ int streams, /**< Total number of streams to encode from the input */ int coupled_streams, /**< Number of coupled (stereo) streams to encode */ - unsigned char *mapping, /**< Encoded mapping between channels and streams */ + const unsigned char *mapping, /**< Encoded mapping between channels and streams */ int application, /**< Coding mode (OPUS_APPLICATION_VOIP/OPUS_APPLICATION_AUDIO) */ int *error /**< Error code */ ); @@ -67,7 +67,7 @@ OPUS_EXPORT int opus_multistream_encoder_init( int channels, /**< Number of channels in the input signal */ int streams, /**< Total number of streams to encode from the input */ int coupled_streams, /**< Number of coupled (stereo) streams to encode */ - unsigned char *mapping, /**< Encoded mapping between channels and streams */ + const unsigned char *mapping, /**< Encoded mapping between channels and streams */ int application /**< Coding mode (OPUS_APPLICATION_VOIP/OPUS_APPLICATION_AUDIO) */ ); @@ -111,7 +111,7 @@ OPUS_EXPORT OpusMSDecoder *opus_multistream_decoder_create( int channels, /**< Number of channels to decode */ int streams, /**< Total number of coded streams in the multistream */ int coupled_streams, /**< Number of coupled (stereo) streams in the multistream */ - unsigned char *mapping, /**< Stream to channel mapping table */ + const unsigned char *mapping, /**< Stream to channel mapping table */ int *error /**< Error code */ ); @@ -122,7 +122,7 @@ OPUS_EXPORT int opus_multistream_decoder_init( int channels, /**< Number of channels in the input signal */ int streams, /**< Total number of coded streams */ int coupled_streams, /**< Number of coupled (stereo) streams */ - unsigned char *mapping /**< Stream to channel mapping table */ + const unsigned char *mapping /**< Stream to channel mapping table */ ); /** Returns the number of samples decoded or a negative error code */ diff --git a/src/opus_multistream.c b/src/opus_multistream.c index ff07accb..7c76e0c3 100644 --- a/src/opus_multistream.c +++ b/src/opus_multistream.c @@ -154,7 +154,7 @@ int opus_multistream_encoder_init( int channels, int streams, int coupled_streams, - unsigned char *mapping, + const unsigned char *mapping, int application ) { @@ -193,7 +193,7 @@ OpusMSEncoder *opus_multistream_encoder_create( int channels, int streams, int coupled_streams, - unsigned char *mapping, + const unsigned char *mapping, int application, int *error ) @@ -526,7 +526,7 @@ int opus_multistream_decoder_init( int channels, int streams, int coupled_streams, - unsigned char *mapping + const unsigned char *mapping ) { int coupled_size; @@ -568,7 +568,7 @@ OpusMSDecoder *opus_multistream_decoder_create( int channels, int streams, int coupled_streams, - unsigned char *mapping, + const unsigned char *mapping, int *error ) {