提交 6c4be209 编写于 作者: J John Bradley

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.
上级 782a5daa
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册