[ekiga] Opal::CallManager: Removed another hardcoded video clock rate.



commit a5af8ec06a180d0843d5088af28f39956ce57071
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Dec 28 15:13:18 2014 +0100

    Opal::CallManager: Removed another hardcoded video clock rate.

 lib/engine/components/opal/opal-call-manager.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-call-manager.cpp 
b/lib/engine/components/opal/opal-call-manager.cpp
index c572bd4..130b107 100644
--- a/lib/engine/components/opal/opal-call-manager.cpp
+++ b/lib/engine/components/opal/opal-call-manager.cpp
@@ -696,7 +696,7 @@ void CallManager::set_video_options (const CallManager::VideoOptions & options)
 
       media_format.SetOptionInteger (OpalVideoFormat::FrameWidthOption (), Ekiga::VideoSizes 
[options.size].width);
       media_format.SetOptionInteger (OpalVideoFormat::FrameHeightOption (), Ekiga::VideoSizes 
[options.size].height);
-      media_format.SetOptionInteger (OpalVideoFormat::FrameTimeOption (), (int) (90000 / 
maximum_frame_rate));
+      media_format.SetOptionInteger (OpalVideoFormat::FrameTimeOption (), (int) (media_format.GetClockRate 
() / maximum_frame_rate));
       media_format.SetOptionInteger (OpalVideoFormat::MaxBitRateOption (), maximum_bitrate * 1000);
       media_format.SetOptionInteger (OpalVideoFormat::TargetBitRateOption (), maximum_transmitted_bitrate * 
1000);
       media_format.SetOptionInteger (OpalVideoFormat::MinRxFrameWidthOption(), GM_QSIF_WIDTH);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]