From d3e27c10b8d4dd7466ca1fd64157183baf216c3b Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 6 Apr 2015 00:40:50 +0100 Subject: [PATCH] Fix frame to ARGB from GRAY when bpp is different than 8 --- lib/PlaYUVerFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PlaYUVerFrame.cpp b/lib/PlaYUVerFrame.cpp index 4a85f15..da0c4eb 100644 --- a/lib/PlaYUVerFrame.cpp +++ b/lib/PlaYUVerFrame.cpp @@ -372,7 +372,7 @@ Void PlaYUVerFrame::fillRGBBuffer() iR = *pR++; iG = *pG++; iB = *pB++; - *pARGB++ = PEL_RGB( iR, iG, iB ); + *pARGB++ = PEL_RGB( ( iR >> shiftBits ), ( iG >> shiftBits ), ( iB >> shiftBits ) ); } } else if( m_pcPelFormat->colorSpace == COLOR_YUV )