opengltexture: align all data to 16

Fixes crash if frame is not aligned to 16. This should probably
be folded into the Frame class itself at some point.
This commit is contained in:
itsmattkc
2020-04-22 15:08:36 +10:00
parent 1d7c29c6d8
commit c8da59a45e
3 changed files with 57 additions and 13 deletions
+2
View File
@@ -175,6 +175,8 @@ private:
void InitScaler(int divider);
void FreeScaler();
static int GetScaledDimension(int dim, int divider);
SwsContext* scale_ctx_;
int scale_divider_;
AVPixelFormat src_pix_fmt_;