[FFmpeg-cvslog] r18577 - trunk/libavformat/mpeg.c

michael subversion
Fri Apr 17 20:08:39 CEST 2009


Author: michael
Date: Fri Apr 17 20:08:39 2009
New Revision: 18577

Log:
Remove 2 ++ from check_pes() that are useless, found by CSA.

Modified:
   trunk/libavformat/mpeg.c

Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c	Fri Apr 17 20:03:00 2009	(r18576)
+++ trunk/libavformat/mpeg.c	Fri Apr 17 20:08:39 2009	(r18577)
@@ -42,10 +42,8 @@ static int check_pes(uint8_t *p, uint8_t
     if((*p&0xC0) == 0x40) p+=2;
     if((*p&0xF0) == 0x20){
         pes1= p[0]&p[2]&p[4]&1;
-        p+=5;
     }else if((*p&0xF0) == 0x30){
         pes1= p[0]&p[2]&p[4]&p[5]&p[7]&p[9]&1;
-        p+=10;
     }else
         pes1 = *p == 0x0F;
 



More information about the ffmpeg-cvslog mailing list