Commit ab6fea06 authored by François Grisez's avatar François Grisez

Clean coding style in videotoolbox-utils.cpp

parent 7388bf1f
......@@ -118,11 +118,9 @@ CMFormatDescriptionRef VideoToolboxUtilities::createFormatDescription(const H26x
VideoToolboxUtilities *VideoToolboxUtilities::create(const std::string &mime) {
if (mime == "video/avc") {
return new VideoToolboxH264Utilities();
}
else if (mime == "video/hevc") {
} else if (mime == "video/hevc") {
return new VideoToolboxH265Utilities();
}
else {
} else {
throw invalid_argument(mime + " not supported");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment