wcap-decode: Fix timestamp overflow
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 29 May 2012 14:51:21 +0000 (10:51 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 29 May 2012 14:51:21 +0000 (10:51 -0400)
wcap/vpxenc.c

index 8edeb55..1de4f92 100644 (file)
@@ -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;