diff --git a/Sources/Video.FFMPEG/VideoFileWriter.cpp b/Sources/Video.FFMPEG/VideoFileWriter.cpp
index d9ad7f47..197b4979 100644
--- a/Sources/Video.FFMPEG/VideoFileWriter.cpp
+++ b/Sources/Video.FFMPEG/VideoFileWriter.cpp
@@ -31,7 +31,7 @@ namespace AForge { namespace Video { namespace FFMPEG
static void write_video_frame( WriterPrivateData^ data );
static void open_video( WriterPrivateData^ data );
-static void add_video_stream( WriterPrivateData^ data, int width, int height, int frameRate, int bitRate,
+static void add_video_stream(WriterPrivateData^ data, int width, int height, double frameRate, int bitRate,
enum libffmpeg::CodecID codec_id, enum libffmpeg::PixelFormat pixelFormat );
// A structure to encapsulate all FFMPEG related private variable
@@ -71,18 +71,18 @@ void VideoFileWriter::Open( String^ fileName, int width, int height )
Open( fileName, width, height, 25 );
}
-void VideoFileWriter::Open( String^ fileName, int width, int height, int frameRate )
+void VideoFileWriter::Open(String^ fileName, int width, int height, double frameRate)
{
Open( fileName, width, height, frameRate, VideoCodec::Default );
}
-void VideoFileWriter::Open( String^ fileName, int width, int height, int frameRate, VideoCodec codec )
+void VideoFileWriter::Open( String^ fileName, int width, int height, double frameRate, VideoCodec codec )
{
Open( fileName, width, height, frameRate, codec, 400000 );
}
// Creates a video file with the specified name and properties
-void VideoFileWriter::Open( String^ fileName, int width, int height, int frameRate, VideoCodec codec, int bitRate )
+void VideoFileWriter::Open(String^ fileName, int width, int height, double frameRate, VideoCodec codec, int bitRate)
{
CheckIfDisposed( );
@@ -374,7 +374,7 @@ static libffmpeg::AVFrame* alloc_picture( enum libffmpeg::PixelFormat pix_fmt, i
}
// Create new video stream and configure it
-void add_video_stream( WriterPrivateData^ data, int width, int height, int frameRate, int bitRate,
+void add_video_stream( WriterPrivateData^ data, int width, int height, double frameRate, int bitRate,
enum libffmpeg::CodecID codecId, enum libffmpeg::PixelFormat pixelFormat )
{
libffmpeg::AVCodecContext* codecContex;
diff --git a/Sources/Video.FFMPEG/VideoFileWriter.h b/Sources/Video.FFMPEG/VideoFileWriter.h
index 43b221ce..ce5a8122 100644
--- a/Sources/Video.FFMPEG/VideoFileWriter.h
+++ b/Sources/Video.FFMPEG/VideoFileWriter.h
@@ -90,9 +90,9 @@ namespace AForge { namespace Video { namespace FFMPEG
///
/// Thrown if no video file was open.
///
- property int FrameRate
+ property double FrameRate
{
- int get( )
+ double get()
{
CheckIfVideoFileIsOpen( );
return m_frameRate;
@@ -202,7 +202,7 @@ namespace AForge { namespace Video { namespace FFMPEG
/// codec.
///
///
- void Open( String^ fileName, int width, int height, int frameRate );
+ void Open(String^ fileName, int width, int height, double frameRate);
///
/// Create video file with the specified name and attributes.
@@ -226,7 +226,7 @@ namespace AForge { namespace Video { namespace FFMPEG
/// A error occurred while creating new video file. See exception message.
/// Cannot open video file with the specified name.
///
- void Open( String^ fileName, int width, int height, int frameRate, VideoCodec codec );
+ void Open(String^ fileName, int width, int height, double frameRate, VideoCodec codec);
///
/// Create video file with the specified name and attributes.
@@ -255,7 +255,7 @@ namespace AForge { namespace Video { namespace FFMPEG
/// A error occurred while creating new video file. See exception message.
/// Cannot open video file with the specified name.
///
- void Open( String^ fileName, int width, int height, int frameRate, VideoCodec codec, int bitRate );
+ void Open(String^ fileName, int width, int height, double frameRate, VideoCodec codec, int bitRate);
///
/// Write new video frame into currently opened video file.
@@ -304,7 +304,7 @@ namespace AForge { namespace Video { namespace FFMPEG
int m_width;
int m_height;
- int m_frameRate;
+ double m_frameRate;
int m_bitRate;
VideoCodec m_codec;