[FFmpeg-cvslog] mpegps_probe: make buffer related pointers const

Michael Niedermayer git at videolan.org
Tue Dec 25 02:01:16 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 25 01:50:14 2012 +0100| [c3cb338955e71afbdfc0400bc2fa87338eea537c] | committer: Michael Niedermayer

mpegps_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=c3cb338955e71afbdfc0400bc2fa87338eea537c
---

 libavformat/mpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index db8fc15..afa8618 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -36,7 +36,7 @@
 
 #define MAX_SYNC_SIZE 100000
 
-static int check_pes(uint8_t *p, uint8_t *end){
+static int check_pes(const uint8_t *p, const uint8_t *end){
     int pes1;
     int pes2=      (p[3] & 0xC0) == 0x80
                 && (p[4] & 0xC0) != 0x40



More information about the ffmpeg-cvslog mailing list