srt_probe: make buffer pointer const
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Dec 2012 01:57:48 +0000 (02:57 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Dec 2012 01:57:48 +0000 (02:57 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/srtdec.c

index 0af3714..cabbb62 100644 (file)
@@ -31,7 +31,7 @@ typedef struct {
 
 static int srt_probe(AVProbeData *p)
 {
-    unsigned char *ptr = p->buf;
+    const unsigned char *ptr = p->buf;
     int i, v, num = 0;
 
     if (AV_RB24(ptr) == 0xEFBBBF)