summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-03-10 21:59:30 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-03-10 21:59:30 +0000
commit98f6dfa6532e72068b89caaf1f9f3f076af46267 (patch)
tree18f6121878a49316ec998466ea740662902d8dc5 /libavcodec
parent074ac3c2d04abaf6b8b1048ba55a1e4ade13042f (diff)
downloadffmpeg-streaming-98f6dfa6532e72068b89caaf1f9f3f076af46267.zip
ffmpeg-streaming-98f6dfa6532e72068b89caaf1f9f3f076af46267.tar.gz
make input buffer const, as it should be. fixes a warning.
Originally committed as revision 12418 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3dec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 1c8bec8..72bd109 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1125,7 +1125,8 @@ static int ac3_parse_audio_block(AC3DecodeContext *s, int blk)
/**
* Decode a single AC-3 frame.
*/
-static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
+static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size,
+ const uint8_t *buf, int buf_size)
{
AC3DecodeContext *s = avctx->priv_data;
int16_t *out_samples = (int16_t *)data;
OpenPOWER on IntegriCloud