[FFmpeg-cvslog] r11762 - trunk/libavformat/oggparsevorbis.c
bcoudurier
subversion
Fri Feb 1 16:17:32 CET 2008
Author: bcoudurier
Date: Fri Feb 1 16:17:32 2008
New Revision: 11762
Log:
const
Modified:
trunk/libavformat/oggparsevorbis.c
Modified: trunk/libavformat/oggparsevorbis.c
==============================================================================
--- trunk/libavformat/oggparsevorbis.c (original)
+++ trunk/libavformat/oggparsevorbis.c Fri Feb 1 16:17:32 2008
@@ -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, uin
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
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)
More information about the ffmpeg-cvslog
mailing list