Run clang-format

This commit is contained in:
Vasishath Kaushal
2021-10-07 21:00:28 +05:30
parent 77c24d15c8
commit 7f31638d6d

View File

@@ -74,17 +74,17 @@ void Vic::Execute() {
if (scaler_ctx == nullptr || frame->width != scaler_width ||
frame->height != scaler_height) {
AVPixelFormat target_format = AV_PIX_FMT_RGBA;
AVPixelFormat target_format;
switch (pixel_format) {
case VideoPixelFormat::BGRA8:
target_format = AV_PIX_FMT_BGRA;
break;
case VideoPixelFormat::XBGR32:
target_format = AV_PIX_FMT_0BGR32;
break;
default:
//Unreachable
break;
case VideoPixelFormat::BGRA8:
target_format = AV_PIX_FMT_BGRA;
break;
case VideoPixelFormat::XBGR32:
target_format = AV_PIX_FMT_0BGR32;
break;
default:
target_format = AV_PIX_FMT_RGBA;
break;
}
sws_freeContext(scaler_ctx);