diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index bd0dfff0b8..297a1a7635 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -1351,7 +1351,7 @@ static int get_slice_offset(AVCodecContext *avctx, uint8_t *buf, int n) int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; diff --git a/libavcodec/rv34.h b/libavcodec/rv34.h index fc3642d883..65dbb8a708 100644 --- a/libavcodec/rv34.h +++ b/libavcodec/rv34.h @@ -123,7 +123,7 @@ typedef struct RV34DecContext{ */ int ff_rv34_get_start_offset(GetBitContext *gb, int blocks); int ff_rv34_decode_init(AVCodecContext *avctx); -int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size); +int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size); int ff_rv34_decode_end(AVCodecContext *avctx); #endif /* AVCODEC_RV34_H */