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.
This commit is contained in:
Sebastian Dröge 2007-07-16 09:19:14 +00:00
parent e4afe4b55c
commit 7da951e3d5
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-07-16 Sebastian Dröge <slomo@circular-chaos.org>
* ext/faad/gstfaad.c: (clip_outgoing_buffer):
Fix buffer clipping to correctly clip to the segment stop.
2007-07-14 Wim Taymans <wim.taymans@gmail.com>
Patch by: Hans de Goede <j.w.r.degoede at hhs dot nl>

View file

@ -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 */