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:
parent
782a5daa18
commit
6c4be20932
2
deps/libff/libff/ff-decoder.c
vendored
2
deps/libff/libff/ff-decoder.c
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user