Better validation of vaapi capability

This commit is contained in:
loki
2021-08-17 21:15:38 +02:00
parent fce23c482c
commit fc7ec9e538
2 changed files with 35 additions and 19 deletions

View File

@@ -88,7 +88,7 @@ public:
data[0] = sw_frame->data[0] + offsetY;
if(sw_frame->format == AV_PIX_FMT_NV12) {
data[1] = sw_frame->data[1] + offsetUV;
data[1] = sw_frame->data[1] + offsetUV * 2;
data[2] = nullptr;
}
else {