From f4b5a4d12e2f2f16c88fa7f91abf48ceeb457e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 29 May 2012 10:51:21 -0400 Subject: wcap-decode: Fix timestamp overflow --- wcap/vpxenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wcap') diff --git a/wcap/vpxenc.c b/wcap/vpxenc.c index 8edeb55c..1de4f926 100644 --- a/wcap/vpxenc.c +++ b/wcap/vpxenc.c @@ -412,7 +412,7 @@ static int read_frame(struct input_state *input, vpx_image_t *img) input->output_msecs = input->wcap->msecs; } - while (input->output_msecs > input->wcap->msecs) + while (input->output_msecs - input->wcap->msecs < INT32_MAX) if (!wcap_decoder_get_frame(input->wcap)) return 0; -- cgit v1.2.1