openh264/codec
Martin Storsjö b7db015a8c Avoid overflow when populating a struct timespec
When adding the (dwMilliseconds % 1000) * 1000000 part
to ts.tv_nsec, the ts.tv_nsec field can grow larger than one
whole second. Therefore first add all of dwMilliseconds to
the tv_nsec field and add all whole seconds to the tv_sec
field instead - this way we make sure that the tv_nsec field
actually is less than a second.
2014-03-02 23:53:51 +02:00
..
api/svc Add a new public method for initializing SEncParamExt to default values 2014-02-26 22:12:11 +02:00
build make the makefile is indepent with the pch file 2014-02-27 09:30:35 +08:00
common Avoid overflow when populating a struct timespec 2014-03-02 23:53:51 +02:00
console Merge pull request #358 from volvet/add_ios_encDemo 2014-02-27 10:52:14 -08:00
decoder Merge pull request #368 from huili2/sps_buffer_modif 2014-02-28 17:41:46 +08:00
encoder Merge pull request #369 from sijchen/mt_refactor3 2014-02-28 08:28:18 -08:00
processing Allow using the USE_ASM makefile variable for architectures other than x86 2014-02-28 10:19:53 +02:00