avformat/utils: fix calculating the absolute difference of timestamps
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Dec 2014 04:31:30 +0000 (05:31 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Dec 2014 05:13:32 +0000 (06:13 +0100)
commita5e5959d52860678d028df07ad1351a11aaf47f7
tree56795002bec7d7818054bd1a938099fafba30de2
parent720dffb843aa780d25b7be224c63ffc0aba13671
avformat/utils: fix calculating the absolute difference of timestamps

we dont use FFABS(a-b) as that could result in undefined behavior if it overflows

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c