diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-01 15:17:32 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-01 15:17:32 +0000 |
commit | 47a0513b0ce82b0ccf01067f6e8a4ec76357d815 (patch) | |
tree | 37e2419f916cadb207950d28262a757f52157844 | |
parent | fbdad670e432b9e422e360a59b012ce92dc735c6 (diff) | |
download | ffmpeg-47a0513b0ce82b0ccf01067f6e8a4ec76357d815.tar.gz |
const
Originally committed as revision 11762 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/oggparsevorbis.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |