, pix_fmt_(codec_context_->pix_fmt)\r
, desc_(get_pixel_format_desc(pix_fmt_, width_, height_))\r
{\r
- double frame_time = static_cast<double>(codec_context_->time_base.num) / static_cast<double>(codec_context_->time_base.den);\r
- double format_frame_time = 1.0/frame_factory->get_video_format_desc().fps;\r
- if(abs(frame_time - format_frame_time) > 0.0001)\r
- BOOST_THROW_EXCEPTION(file_read_error() << msg_info("Invalid video framerate.") << arg_value_info(boost::lexical_cast<std::string>(frame_time)));\r
-\r
if(desc_.pix_fmt == core::pixel_format::invalid)\r
{\r
CASPAR_LOG(warning) << "Hardware accelerated color transform not supported.";\r