mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
ffdec: remove clipping hack
Remove a hack that seems to produce wrong clipping values.
This commit is contained in:
parent
62d54db07d
commit
59bc425174
1 changed files with 1 additions and 8 deletions
|
@ -1394,16 +1394,9 @@ clip_video_buffer (GstFFMpegDec * dec, GstBuffer * buf, GstClockTime in_ts,
|
||||||
res =
|
res =
|
||||||
gst_segment_clip (&dec->segment, GST_FORMAT_TIME, in_ts, stop, &cstart,
|
gst_segment_clip (&dec->segment, GST_FORMAT_TIME, in_ts, stop, &cstart,
|
||||||
&cstop);
|
&cstop);
|
||||||
if (G_UNLIKELY (!res && in_ts != dec->segment.stop))
|
if (G_UNLIKELY (!res))
|
||||||
goto beach;
|
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
|
/* 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) */
|
* segment (which _clip will assume when the stop is -1) */
|
||||||
if (stop == GST_CLOCK_TIME_NONE)
|
if (stop == GST_CLOCK_TIME_NONE)
|
||||||
|
|
Loading…
Reference in a new issue