--- a/src/demuxers/demux_rawdv.c 2008-08-07 09:06:01.000000000 +0200 +++ b/src/demuxers/demux_rawdv.c 2008-08-07 09:06:17.000000000 +0200 @@ -374,8 +374,7 @@ } /* DIF (DV) movie file */ - if (!((buf[0] == 0x1f) && (buf[1] == 0x07) && (buf[2] == 00) && - (buf[4] ^ 0x01))) { + if (memcmp(buf, "\x1F\x07\x00", 3) != 0 || !(buf[4] ^ 0x01)) { free (this); return NULL; }