From 7da951e3d5b4da534b475acc55f6b1bb29991921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 16 Jul 2007 09:19:14 +0000 Subject: ext/faad/gstfaad.c: Fix buffer clipping to correctly clip to the segment stop. Original commit message from CVS: * ext/faad/gstfaad.c: (clip_outgoing_buffer): Fix buffer clipping to correctly clip to the segment stop. --- ext/faad/gstfaad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/faad') diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c index 814de23b..5863e590 100644 --- a/ext/faad/gstfaad.c +++ b/ext/faad/gstfaad.c @@ -1163,7 +1163,7 @@ clip_outgoing_buffer (GstFaad * faad, GstBuffer * buffer) GST_BUFFER_DATA (buffer) += diff; GST_BUFFER_SIZE (buffer) -= diff; } - diff = cstop - stop; + diff = stop - cstop; if (diff > 0) { GST_BUFFER_DURATION (buffer) -= diff; /* time->frames->bytes */ -- cgit v1.2.1