From 94ae4ca8334f3965e8ea164da163cc62ce105b4f Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Sun, 18 Dec 2011 17:40:57 +0100 Subject: [PATCH] h264parse: do wait for a keyframe when handling force key unit events Although some decoders can start decoding with just PPS and SPS and waiting for a keyframe is bad when the keyframe interval is large, gst-ffmpeg does need a keyframe to start decoding. --- gst/videoparsers/gsth264parse.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 20c59a36df..40e414e91d 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -1276,12 +1276,10 @@ check_pending_key_unit_event (GstEvent * pending_event, GstSegment * segment, running_time < pending_key_unit_ts) goto out; -#if 0 if (flags & GST_BUFFER_FLAG_DELTA_UNIT) { GST_DEBUG ("pending force key unit, waiting for keyframe"); goto out; } -#endif stream_time = gst_segment_to_stream_time (segment, GST_FORMAT_TIME, timestamp);