]> git.sesse.net Git - ffmpeg/commit
asfenc: fix some possible integer overflows
authorAnton Khirnov <anton@khirnov.net>
Fri, 4 Mar 2016 15:32:07 +0000 (16:32 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 5 Mar 2016 07:43:04 +0000 (08:43 +0100)
commitff3db937ef3aa30046a3936146f86ad48ee2ff90
treead9f09db64eaaa07277df6badbbd912f98022cd8
parent1ceb07eb313c2d51383408025e57a2fe50ccd164
asfenc: fix some possible integer overflows

Store the file duration in the same timebase it arrives (i.e.
milliseconds) and only convert it to the file duration units (100ns)
when it's actually written, thus simplifying some calculations. Also,
store the duration as unsigned, since it cannot be negative.

CC: libav-stable@libav.org
Bug-ID: CVE-2016-2326
libavformat/asfenc.c