[vlc-commits] picture_pool: partly fix integer overflow
Rémi Denis-Courmont
git at videolan.org
Sat Nov 1 13:58:21 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 1 14:56:13 2014 +0200| [2befefd4ea6a518d9fa35349e483e3d564c2fe80] | committer: Rémi Denis-Courmont
picture_pool: partly fix integer overflow
picture_pool_NonEmpty() still won´t work quite right when the overflow
happens, but that function is a horrible dysfunctional hack anyway.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2befefd4ea6a518d9fa35349e483e3d564c2fe80
---
src/misc/picture_pool.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/misc/picture_pool.c b/src/misc/picture_pool.c
index 53118a2..3603887 100644
--- a/src/misc/picture_pool.c
+++ b/src/misc/picture_pool.c
@@ -41,11 +41,11 @@ struct picture_gc_sys_t {
picture_pool_t *pool;
picture_t *picture;
bool in_use;
- int64_t tick;
+ uint64_t tick;
};
struct picture_pool_t {
- int64_t tick;
+ uint64_t tick;
/* */
unsigned picture_count;
picture_t **picture;
More information about the vlc-commits
mailing list