]> git.sesse.net Git - mlt/commit
Fix undefined bahavior in SDL module (3066195).
authorDan Dennedy <dan@dennedy.org>
Wed, 12 Jan 2011 03:04:11 +0000 (19:04 -0800)
committerDan Dennedy <dan@dennedy.org>
Wed, 12 Jan 2011 03:04:11 +0000 (19:04 -0800)
commit1604917d7358eff6795b87a9dd257202cef887f3
treeb959325f51a107fabef8cd90f246d34a60fcc8a7
parent7406f5658b0be0a57477b34f53607ac008482bca
Fix undefined bahavior in SDL module (3066195).

The standard says the post-increment can have effect at any point
between the previous and the next sequence point (or something similar),
so the behavior of "this->refresh_count = this->refresh_count ++" is
undefined.

Patch by Cristian Morales Vega
src/modules/sdl/consumer_sdl_audio.c
src/modules/sdl/consumer_sdl_preview.c