diff --git a/source/encoders/ffmpeg-encoder.cpp b/source/encoders/ffmpeg-encoder.cpp index e4cef988..d9304209 100644 --- a/source/encoders/ffmpeg-encoder.cpp +++ b/source/encoders/ffmpeg-encoder.cpp @@ -639,7 +639,7 @@ void ffmpeg_instance::initialize_sw(obs_data_t* settings) std::stringstream sstr; sstr << "Color Format '" << ::ffmpeg::tools::get_pixel_format_name(_pixfmt_target) << "' is not supported by the encoder."; - throw std::exception(sstr.str().c_str()); + throw std::runtime_error(sstr.str().c_str()); } } diff --git a/source/ffmpeg/avframe-queue.cpp b/source/ffmpeg/avframe-queue.cpp index d32a7d66..eb5e931b 100644 --- a/source/ffmpeg/avframe-queue.cpp +++ b/source/ffmpeg/avframe-queue.cpp @@ -36,7 +36,7 @@ std::shared_ptr avframe_queue::create_frame() int res = av_frame_get_buffer(frame.get(), 32); if (res < 0) { - throw std::exception(tools::get_error_description(res)); + throw std::runtime_error(tools::get_error_description(res)); } return frame;