deps-libff: Fix pts diffs being adjusted wrongly

Removed code where if a PTS diff was greater than a certain
threshold it was forced to the previous PTS diff.  This breaks
variable length frame media like GIF.
This commit is contained in:
John Bradley 2015-05-13 11:12:10 -05:00
parent 782a5daa18
commit 6c4be20932

View File

@ -233,7 +233,7 @@ void ff_decoder_refresh(void *opaque)
// frame
pts_diff = frame->pts - decoder->previous_pts;
if (pts_diff <= 0 || pts_diff >= 1.0) {
if (pts_diff <= 0) {
// if diff is invalid, use previous
pts_diff = decoder->previous_pts_diff;
}