Skip to content
Snippets Groups Projects
Commit 73480ced authored by Tristan Matthews's avatar Tristan Matthews
Browse files

video: throw correct exception type

Change-Id: I6df11e4f78db379c58a3d048d74c86d5773ed28c
parent c79bb57a
No related branches found
No related tags found
No related merge requests found
......@@ -79,12 +79,12 @@ void VideoEncoder::setOptions(const std::map<std::string, std::string>& options)
value = extract(options, "width");
if (!value)
throw std::runtime_error("width option not set");
throw VideoEncoderException("width option not set");
av_dict_set(&options_, "width", value, 0);
value = extract(options, "height");
if (!value)
throw std::runtime_error("height option not set");
throw VideoEncoderException("height option not set");
av_dict_set(&options_, "height", value, 0);
value = extract(options, "bitrate") ? : "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment