mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 12:40:31 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user