From: Diego Biurrun Date: Wed, 16 Jan 2008 09:02:22 +0000 (+0000) Subject: Add const qualifiers to unmodified function parameters, fixes the warning: X-Git-Tag: v0.5~6439 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f390307dbd8470dea5f9226eff22e8885763653;p=platform%2Fupstream%2Flibav.git Add const qualifiers to unmodified function parameters, fixes the warning: svq1dec.c:584: warning: passing argument 1 of 'svq1_packet_checksum' discards qualifiers from pointer target type Originally committed as revision 11536 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index e6aa797..4acf9eb 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -540,7 +540,7 @@ static int svq1_decode_delta_block (MpegEncContext *s, GetBitContext *bitbuf, return result; } -static uint16_t svq1_packet_checksum (uint8_t *data, int length, int value) { +static uint16_t svq1_packet_checksum (const uint8_t *data, const int length, int value) { int i; for (i=0; i < length; i++) {