[FFmpeg-cvslog] flac_probe: make buffer pointers const
Michael Niedermayer
git at videolan.org
Tue Dec 25 02:01:14 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 25 01:43:14 2012 +0100| [4fcf6aa7a3a204af3abcdc2aea2bd6247e6baf6f] | committer: Michael Niedermayer
flac_probe: make buffer pointers const
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4fcf6aa7a3a204af3abcdc2aea2bd6247e6baf6f
---
libavformat/flacdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c
index bbb28f4..ecc47e6 100644
--- a/libavformat/flacdec.c
+++ b/libavformat/flacdec.c
@@ -277,8 +277,8 @@ fail:
static int flac_probe(AVProbeData *p)
{
- uint8_t *bufptr = p->buf;
- uint8_t *end = p->buf + p->buf_size;
+ const uint8_t *bufptr = p->buf;
+ const uint8_t *end = p->buf + p->buf_size;
if(bufptr > end-4 || memcmp(bufptr, "fLaC", 4)) return 0;
else return AVPROBE_SCORE_MAX/2;
More information about the ffmpeg-cvslog
mailing list