projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c43e7e
)
fixed timeScale formula in CvCapture_FFMPEG::setProperty(... CV_CAP_PROP_POS_......
author
Vadim Pisarevsky
<no@email>
Fri, 8 Jul 2011 15:03:28 +0000
(15:03 +0000)
committer
Vadim Pisarevsky
<no@email>
Fri, 8 Jul 2011 15:03:28 +0000
(15:03 +0000)
modules/highgui/src/cap_ffmpeg_impl.hpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/cap_ffmpeg_impl.hpp
b/modules/highgui/src/cap_ffmpeg_impl.hpp
index
ccb8f13
..
5fd9926
100644
(file)
--- a/
modules/highgui/src/cap_ffmpeg_impl.hpp
+++ b/
modules/highgui/src/cap_ffmpeg_impl.hpp
@@
-739,7
+739,7
@@
bool CvCapture_FFMPEG::setProperty( int property_id, double value )
int64_t timestamp = ic->streams[video_stream]->first_dts;
AVRational time_base = ic->streams[video_stream]->time_base;
AVRational frame_base = ic->streams[video_stream]->r_frame_rate;
- double timeScale = (time_base.den / (double)time_base.num) / (frame_base.num / frame_base.den);
+ double timeScale = (time_base.den / (double)time_base.num) / (frame_base.num /
(double)
frame_base.den);
switch( property_id )
{
case CV_FFMPEG_CAP_PROP_POS_FRAMES: