The pattern was incorrect, so we were pretty much always starting on a
non-I-frame when creating previews from VC1 ffmpeg sources. This fixes
the grey preview complaints several users have had.
git-svn-id: svn://localhost/HandBrake/trunk@2870
b64f7644-9d1e-0410-96f1-
a4d463321fa5
// we do it ourselves here. The decoder gets messed up if it
// doesn't get a SEQ header first so we consider that to be a key frame.
pkt = stream->ffmpeg_pkt->data;
- if ( pkt[0] && pkt[1] && pkt[2] == 1 && pkt[3] == 0x0f )
+ if ( !pkt[0] && !pkt[1] && pkt[2] == 1 && pkt[3] == 0x0f )
return 1;
return 0;