]> git.sesse.net Git - mlt/commit
mlt_consumer_start(): check return value from mlt_properties_get_int()
authorMikko Rapeli <mikko.rapeli@iki.fi>
Tue, 24 Jul 2012 17:55:47 +0000 (19:55 +0200)
committerMikko Rapeli <mikko.rapeli@iki.fi>
Tue, 24 Jul 2012 18:00:19 +0000 (20:00 +0200)
commit3f56ec1f377e53061d6e4ec74072dc78179cc403
tree942199b76d9ec062a0878338bc2bdb076de73382
parent61bb3f97aa9e04af604afbb65621021658f32716
mlt_consumer_start(): check return value from mlt_properties_get_int()

Fixes Coverity CID 709343: Division or modulo by zero (DIVIDE_BY_ZERO)
Division by expression "mlt_properties_get_int(properties, "frame_rate_num")" which may be zero has undefined behavior
On this path, function call "mlt_properties_get_int(properties, "frame_rate_num")" has return value of 0
 442        int frame_duration = 1000000 / mlt_properties_get_int( properties, "frame_rate_num" ) *
 443                        mlt_properties_get_int( properties, "frame_rate_den" );
src/framework/mlt_consumer.c