changeset 6487:8f1b27d73a07 libavcodec

make input buffer const, as it should be. fixes a warning.
author jbr
date Mon, 10 Mar 2008 21:59:30 +0000
parents 3f96dc62c4b9
children ecbe9565dcae
files ac3dec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Mon Mar 10 18:42:09 2008 +0000
+++ b/ac3dec.c	Mon Mar 10 21:59:30 2008 +0000
@@ -1125,7 +1125,8 @@
 /**
  * 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;