resize utils: abort on unsupported codecs

Continuing would cause abort anyways in CV calls, because the empty
(error) return value is not handled in any way.
This commit is contained in:
Martin Pulec
2023-11-09 11:05:44 +01:00
parent 84f827d4cb
commit 1994a02ecf

View File

@@ -100,7 +100,7 @@ static Mat ug_to_rgb_mat(codec_t codec, int width, int height, char *indata) {
break;
default:
LOG(LOG_LEVEL_ERROR) << MOD_NAME "Unsupported codec: " << codec << "\n";
return {};
abort();
}
yuv.create(height * num / den, width, pix_fmt);
yuv.data = (uchar*)indata;