mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
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.
This commit is contained in:
parent
38a5719c53
commit
94ae4ca833
1 changed files with 0 additions and 2 deletions
|
@ -1276,12 +1276,10 @@ check_pending_key_unit_event (GstEvent * pending_event, GstSegment * segment,
|
||||||
running_time < pending_key_unit_ts)
|
running_time < pending_key_unit_ts)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (flags & GST_BUFFER_FLAG_DELTA_UNIT) {
|
if (flags & GST_BUFFER_FLAG_DELTA_UNIT) {
|
||||||
GST_DEBUG ("pending force key unit, waiting for keyframe");
|
GST_DEBUG ("pending force key unit, waiting for keyframe");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
stream_time = gst_segment_to_stream_time (segment,
|
stream_time = gst_segment_to_stream_time (segment,
|
||||||
GST_FORMAT_TIME, timestamp);
|
GST_FORMAT_TIME, timestamp);
|
||||||
|
|
Loading…
Reference in a new issue