summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-11-16 13:54:16 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2009-11-16 13:55:01 +0100
commit59bc425174bc46b29b2af7fffe4d932feb14b3b8 (patch)
tree7ee7a990356828f9acea8750a2d9a09c036fd831
parent62d54db07d7b862ec147f2a35bd3eda1a7530b38 (diff)
ffdec: remove clipping hack
Remove a hack that seems to produce wrong clipping values.
-rw-r--r--ext/ffmpeg/gstffmpegdec.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
index b23c6c2..2a5bd51 100644
--- a/ext/ffmpeg/gstffmpegdec.c
+++ b/ext/ffmpeg/gstffmpegdec.c
@@ -1394,16 +1394,9 @@ clip_video_buffer (GstFFMpegDec * dec, GstBuffer * buf, GstClockTime in_ts,
res =
gst_segment_clip (&dec->segment, GST_FORMAT_TIME, in_ts, stop, &cstart,
&cstop);
- if (G_UNLIKELY (!res && in_ts != dec->segment.stop))
+ if (G_UNLIKELY (!res))
goto beach;
- /* Special case: last buffer has zero duration */
- if (G_UNLIKELY (in_ts == dec->segment.stop)) {
- res = TRUE;
- cstart = in_ts - 1;
- stop = cstop = in_ts;
- }
-
/* we're pretty sure the duration of this buffer is not till the end of this
* segment (which _clip will assume when the stop is -1) */
if (stop == GST_CLOCK_TIME_NONE)