From 47a0513b0ce82b0ccf01067f6e8a4ec76357d815 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Fri, 1 Feb 2008 15:17:32 +0000 Subject: const Originally committed as revision 11762 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/oggparsevorbis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavformat/oggparsevorbis.c') diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index d1f260a80e..cc914ce394 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavformat/oggparsevorbis.c @@ -33,8 +33,8 @@ extern int vorbis_comment(AVFormatContext * as, uint8_t *buf, int size) { - uint8_t *p = buf; - uint8_t *end = buf + size; + const uint8_t *p = buf; + const uint8_t *end = buf + size; unsigned s, n, j; if (size < 8) /* must have vendor_length and user_comment_list_length */ @@ -50,7 +50,7 @@ vorbis_comment(AVFormatContext * as, uint8_t *buf, int size) n = bytestream_get_le32(&p); while (p < end && n > 0) { - char *t, *v; + const char *t, *v; int tl, vl; s = bytestream_get_le32(&p); @@ -176,7 +176,7 @@ vorbis_header (AVFormatContext * s, int idx) priv->packet[os->seq] = av_mallocz(os->psize); memcpy(priv->packet[os->seq], os->buf + os->pstart, os->psize); if (os->buf[os->pstart] == 1) { - uint8_t *p = os->buf + os->pstart + 7; /* skip "\001vorbis" tag */ + const uint8_t *p = os->buf + os->pstart + 7; /* skip "\001vorbis" tag */ unsigned blocksize, bs0, bs1; if (os->psize != 30) -- cgit v1.2.3