diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-03-22 15:33:28 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-03-23 09:25:30 +0100 |
commit | 8dead2aaca4aa8b84b77b05745755afb56b7d37a (patch) | |
tree | 26639cd6652d303f57f2646d160bb9c89b593ac7 /libavcodec/alacenc.c | |
parent | d909f43b5c773a73c8d526638744547ba4aa8c59 (diff) | |
download | ffmpeg-8dead2aaca4aa8b84b77b05745755afb56b7d37a.tar.gz |
Move const qualifier before type name
Diffstat (limited to 'libavcodec/alacenc.c')
-rw-r--r-- | libavcodec/alacenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c index b7ebade9b0..d921fa124c 100644 --- a/libavcodec/alacenc.c +++ b/libavcodec/alacenc.c @@ -81,7 +81,7 @@ typedef struct AlacEncodeContext { static void init_sample_buffers(AlacEncodeContext *s, int channels, - uint8_t const *samples[2]) + const uint8_t *samples[2]) { int ch, i; int shift = av_get_bytes_per_sample(s->avctx->sample_fmt) * 8 - @@ -364,7 +364,7 @@ static void write_element(AlacEncodeContext *s, enum AlacRawDataBlockType element, int instance, const uint8_t *samples0, const uint8_t *samples1) { - uint8_t const *samples[2] = { samples0, samples1 }; + const uint8_t *samples[2] = { samples0, samples1 }; int i, j, channels; int prediction_type = 0; PutBitContext *pb = &s->pbctx; @@ -376,14 +376,14 @@ static void write_element(AlacEncodeContext *s, /* samples are channel-interleaved in verbatim mode */ if (s->avctx->sample_fmt == AV_SAMPLE_FMT_S32P) { int shift = 32 - s->avctx->bits_per_raw_sample; - int32_t const *samples_s32[2] = { (const int32_t *)samples0, + const int32_t *samples_s32[2] = { (const int32_t *)samples0, (const int32_t *)samples1 }; for (i = 0; i < s->frame_size; i++) for (j = 0; j < channels; j++) put_sbits(pb, s->avctx->bits_per_raw_sample, samples_s32[j][i] >> shift); } else { - int16_t const *samples_s16[2] = { (const int16_t *)samples0, + const int16_t *samples_s16[2] = { (const int16_t *)samples0, (const int16_t *)samples1 }; for (i = 0; i < s->frame_size; i++) for (j = 0; j < channels; j++) |