diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 8104467ca1..6b41b3385c 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -1932,7 +1932,10 @@ gst_qtdemux_seek_to_previous_keyframe (GstQTDemux * qtdemux) k_index = gst_qtdemux_find_keyframe (qtdemux, ref_str, ref_str->from_sample - 1); } else { - k_index = ref_str->from_sample - 10; + if (ref_str->from_sample >= 10) + k_index = ref_str->from_sample - 10; + else + k_index = 0; } /* get current segment for that stream */