diff --git a/app/render/videoparams.cpp b/app/render/videoparams.cpp index 585ae03b3..4a80cd424 100644 --- a/app/render/videoparams.cpp +++ b/app/render/videoparams.cpp @@ -34,10 +34,12 @@ VideoRenderingParams::VideoRenderingParams() : { } -VideoRenderingParams::VideoRenderingParams(const int &width, const int &height, const PixelFormat::Format &format) : +VideoRenderingParams::VideoRenderingParams(const int &width, const int &height, const PixelFormat::Format &format, const int& divider) : VideoParams(width, height, rational()), - format_(format) + format_(format), + divider_(divider) { + calculate_effective_size(); } VideoRenderingParams::VideoRenderingParams(const int &width, const int &height, const rational &time_base, const PixelFormat::Format &format, const RenderMode::Mode& mode, const int ÷r) : diff --git a/app/render/videoparams.h b/app/render/videoparams.h index 2a593c783..50a31a659 100644 --- a/app/render/videoparams.h +++ b/app/render/videoparams.h @@ -25,7 +25,7 @@ private: class VideoRenderingParams : public VideoParams { public: VideoRenderingParams(); - VideoRenderingParams(const int& width, const int& height, const PixelFormat::Format& format); + VideoRenderingParams(const int& width, const int& height, const PixelFormat::Format& format, const int& divider = 1); VideoRenderingParams(const int& width, const int& height, const rational& time_base, const PixelFormat::Format& format, const RenderMode::Mode& mode, const int& divider = 1); VideoRenderingParams(const VideoParams& params, const PixelFormat::Format& format, const RenderMode::Mode& mode, const int& divider = 1);