summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-10-06 01:25:46 +0000
committerjstebbins <[email protected]>2009-10-06 01:25:46 +0000
commit97949962d2e25cbdb08a27c0b7fb2c47ad17f318 (patch)
tree6c390e7c807b133a087ee8480f9a8b452190736a /libhb
parent61ee5dd5277eedea8328666bba251ecd0d3af0dd (diff)
fix VC1 I-frame detection in ffmpeg_is_keyframe
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://svn.handbrake.fr/HandBrake/trunk@2870 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index 8aa61a181..c6376a1bf 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -2775,7 +2775,7 @@ static int ffmpeg_is_keyframe( hb_stream_t *stream )
// 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;