summaryrefslogtreecommitdiff
path: root/wcap
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-29 10:51:21 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-29 10:51:21 -0400
commitf4b5a4d12e2f2f16c88fa7f91abf48ceeb457e4d (patch)
tree1ccd9eb5a218339f357bb4ca605cd23c8f493f2f /wcap
parent08bcf14903b7d3b17a9c47a0ee31a62b3fa66a81 (diff)
downloadweston-f4b5a4d12e2f2f16c88fa7f91abf48ceeb457e4d.tar.gz
wcap-decode: Fix timestamp overflow
Diffstat (limited to 'wcap')
-rw-r--r--wcap/vpxenc.c2
1 files changed, 1 insertions, 1 deletions
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;