Skip to content

Commit

Permalink
Fix Y8 in PlanarFrames
Browse files Browse the repository at this point in the history
  • Loading branch information
pinterf committed Feb 23, 2021
1 parent 01af8ab commit 5aeec83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TIVTC/PlanarFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <emmintrin.h>
#include <stdint.h>

// 8 bits only!!!

PlanarFrame::PlanarFrame(int cpuFlags)
{
Expand Down Expand Up @@ -191,8 +192,8 @@ void PlanarFrame::createPlanar(int height, int width, int chroma_format)
}
else if (chroma_format == PLANAR_400) // greyscale
{
specs[0] = height; specs[1] = height;
specs[2] = 0; specs[3] = 0;
specs[0] = height; specs[1] = 0;
specs[2] = width; specs[3] = 0;
}
allocSpace(specs);
}
Expand Down

0 comments on commit 5aeec83

Please sign in to comment.