[FFmpeg-cvslog] str_probe: make buffer related pointers const
Michael Niedermayer
git at videolan.org
Tue Dec 25 02:01:19 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 25 01:55:22 2012 +0100| [f89f3d4a9823393dc3a3cabf38b06f68cc826a4b] | committer: Michael Niedermayer
str_probe: make buffer related pointers const
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f89f3d4a9823393dc3a3cabf38b06f68cc826a4b
---
libavformat/psxstr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c
index 35a6d71..a2a629f 100644
--- a/libavformat/psxstr.c
+++ b/libavformat/psxstr.c
@@ -69,8 +69,8 @@ static const uint8_t sync_header[12] = {0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
static int str_probe(AVProbeData *p)
{
- uint8_t *sector= p->buf;
- uint8_t *end= sector + p->buf_size;
+ const uint8_t *sector= p->buf;
+ const uint8_t *end= sector + p->buf_size;
int aud=0, vid=0;
if (p->buf_size < RAW_CD_SECTOR_SIZE)
More information about the ffmpeg-cvslog
mailing list