From 9e5e81f1e9f2fe916d0263f2e5599e8f90ceaa02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Tue, 7 Apr 2009 04:53:02 +0300 Subject: baseparse: Fix slightly broken buffer-in-segment check (aacparse, amrparse, flacparse) --- gst/flacparse/gstbaseparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/flacparse') diff --git a/gst/flacparse/gstbaseparse.c b/gst/flacparse/gstbaseparse.c index ea06474e..23cd8a9a 100644 --- a/gst/flacparse/gstbaseparse.c +++ b/gst/flacparse/gstbaseparse.c @@ -1763,7 +1763,7 @@ gst_base_parse_frame_in_segment (GstBaseParse * parse, GstBuffer * buffer, } else if (GST_BUFFER_TIMESTAMP_IS_VALID (buffer) && GST_BUFFER_DURATION_IS_VALID (buffer) && GST_CLOCK_TIME_IS_VALID (segment->start) && - GST_BUFFER_TIMESTAMP (buffer) + GST_BUFFER_DURATION_IS_VALID (buffer) + GST_BUFFER_TIMESTAMP (buffer) + GST_BUFFER_DURATION (buffer) < segment->start) { return FALSE; } -- cgit v1.2.1