summaryrefslogtreecommitdiffstats
path: root/src/file_mpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-03-23 14:53:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-03-23 14:53:48 +0100
commit7a49652c092b035f987842798b753f22cd43462d (patch)
tree0ee99df00e54a55709d1057c7f3cbcfe71dcc537 /src/file_mpg.c
parent96de809d9ecde9eba4ccf76ee73e204155e332ea (diff)
PhotoRec: stricter check for .mpg mpeg-1 system header start code detection
Diffstat (limited to 'src/file_mpg.c')
-rw-r--r--src/file_mpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_mpg.c b/src/file_mpg.c
index 1ab8378..f7135e9 100644
--- a/src/file_mpg.c
+++ b/src/file_mpg.c
@@ -158,7 +158,7 @@ static int header_check_mpg_System(const unsigned char *buffer, const unsigned i
*/
/* MPEG-1 system header start code */
- if((buffer[6]&0x80)==0x80 && (buffer[8]&0x01)==0x01)
+ if((buffer[6]&0x80)==0x80 && (buffer[8]&0x01)==0x01 && buffer[11]==0xff)
{
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_mpg.extension;