microdvd_probe: make buffer pointers const
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Dec 2012 00:50:58 +0000 (01:50 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Dec 2012 00:50:58 +0000 (01:50 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/microdvddec.c

index 68a5d87..5d5b83f 100644 (file)
@@ -35,7 +35,8 @@ typedef struct {
 
 static int microdvd_probe(AVProbeData *p)
 {
-    unsigned char c, *ptr = p->buf;
+    unsigned char c;
+    const uint8_t *ptr = p->buf;
     int i;
 
     if (AV_RB24(ptr) == 0xEFBBBF)