[FFmpeg-devel] [PATCH 03/15] samplefmt: Fix warning about discarded qualifiers

Clément Bœsch ubitux at gmail.com
Fri Jul 27 10:35:15 CEST 2012


On Fri, Jul 27, 2012 at 05:23:14AM -0300, jamal wrote:
> ---
>  libavutil/samplefmt.c |    2 +-
>  libavutil/samplefmt.h |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c
> index a9c12ed..52b77c6 100644
> --- a/libavutil/samplefmt.c
> +++ b/libavutil/samplefmt.c
> @@ -152,7 +152,7 @@ int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
>  }
>  
>  int av_samples_fill_arrays(uint8_t **audio_data, int *linesize,
> -                           const uint8_t *buf, int nb_channels, int nb_samples,
> +                           uint8_t *buf, int nb_channels, int nb_samples,
>                             enum AVSampleFormat sample_fmt, int align)
>  {
>      int ch, planar, buf_size, line_size;
> diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h
> index 4ce606d..dccce6e 100644
> --- a/libavutil/samplefmt.h
> +++ b/libavutil/samplefmt.h
> @@ -179,7 +179,7 @@ int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
>   * @return                 0 on success or a negative error code on failure
>   */
>  int av_samples_fill_arrays(uint8_t **audio_data, int *linesize,
> -                           const uint8_t *buf,
> +                           uint8_t *buf,
>                             int nb_channels, int nb_samples,
>                             enum AVSampleFormat sample_fmt, int align);
>  

Well, buf is actually const within the scope of that function.

Also, you are changing the prototype of a public API function.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120727/9be89ba2/attachment.asc>


More information about the ffmpeg-devel mailing list