Browse Source

blend: silence warnings

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
pull/89/head
Lyndon Brown 8 years ago
committed by Thomas Guillem
parent
commit
39e9a4f0b8
  1. 11
      modules/video_filter/blend.cpp

11
modules/video_filter/blend.cpp

@ -146,8 +146,8 @@ private:
{
if (plane == 1 || plane == 2)
return (pixel*)&data[plane][(x + dx) / rx * sizeof(pixel)];
else
return (pixel*)&data[plane][(x + dx) / 1 * sizeof(pixel)];
return (pixel*)&data[plane][(x + dx) / 1 * sizeof(pixel)];
}
uint8_t *data[4];
};
@ -280,7 +280,12 @@ public:
}
offset_a = 3;
} else {
GetPackedRgbIndexes(fmt, &offset_r, &offset_g, &offset_b);
if (GetPackedRgbIndexes(fmt, &offset_r, &offset_g, &offset_b) != VLC_SUCCESS) {
/* at least init to something on error to silence compiler warnings */
offset_r = 0;
offset_g = 1;
offset_b = 2;
}
}
data = CPicture::getLine<1>(0);
}

Loading…
Cancel
Save