diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-01 21:16:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-01 21:37:29 +0100 |
commit | f742c7b2cef7975cb46e7da8c3aff85a085b5193 (patch) | |
tree | da4290b25832e9c54c6e0c8c0f806f756e39ddae | |
parent | bacebe1f952d9192338a0682a0e48fbb4c88e450 (diff) | |
download | ffmpeg-f742c7b2cef7975cb46e7da8c3aff85a085b5193.tar.gz |
lavf: fix integer overflow in rfps calculation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 3171b21ea3..72a3d5eeae 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2721,7 +2721,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) int framerate= get_std_framerate(i); double sdts= dts*framerate/(1001*12); for(j=0; j<2; j++){ - int ticks= lrintf(sdts+j*0.5); + int64_t ticks= llrint(sdts+j*0.5); double error= sdts - ticks + j*0.5; st->info->duration_error[j][0][i] += error; st->info->duration_error[j][1][i] += error*error; |