summaryrefslogtreecommitdiffstats
path: root/src/file_mpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-05-11 09:25:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-05-11 09:25:39 +0200
commite1ca4010307fb53d83c5036f6c8269eb9066c928 (patch)
tree79a9547954c70be7ddc88324990d60a163ffb16d /src/file_mpg.c
parentf63304053aa32515e4853c2472fb785bcda0307c (diff)
remove always-true memcmp
Diffstat (limited to 'src/file_mpg.c')
-rw-r--r--src/file_mpg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file_mpg.c b/src/file_mpg.c
index 20e1fbe..19e6086 100644
--- a/src/file_mpg.c
+++ b/src/file_mpg.c
@@ -71,13 +71,13 @@ static int calculate_packet_size(const unsigned char *buffer)
/* Extension */
case 0xB5:
/* Sequence_Extension */
- if((buffer[4]&0xF0)==0x10 && (buffer[7]&1)==1)
+ if((buffer[4]&0xF0)==0x10 && (buffer[7]&1)==1)
return 10;
/* Sequence_Display_Extension without color description */
- if((buffer[4]&0xF0)==0x20 && (buffer[4]&1)==0 && (buffer[6]&2)==2)
+ if((buffer[4]&0xF0)==0x20 && (buffer[4]&1)==0 && (buffer[6]&2)==2)
return 9;
/* Sequence_Display_Extension with color description */
- if((buffer[4]&0xF0)==0x20 && (buffer[4]&1)==1 && (buffer[9]&2)==2)
+ if((buffer[4]&0xF0)==0x20 && (buffer[4]&1)==1 && (buffer[9]&2)==2)
return 12;
/* Picture_Coding_Extension */
if((buffer[4]&0xF0)==0x40)