From 8620e3ddf234f3b8796e3f63e4a1ef275f8a9927 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 8 Apr 2019 15:00:15 +0100 Subject: [PATCH] Fix error in copy from function in CalypFrame --- lib/CalypFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CalypFrame.cpp b/lib/CalypFrame.cpp index 60fbc82..8002c49 100644 --- a/lib/CalypFrame.cpp +++ b/lib/CalypFrame.cpp @@ -547,7 +547,7 @@ void CalypFrame::copyFrom( const CalypFrame* other ) void CalypFrame::copyFrom( const CalypFrame& other, unsigned int xPos, unsigned int yPos ) { - if( !haveSameFmt( other, MATCH_COLOR_SPACE | MATCH_BYTES_PER_FRAME | MATCH_BITS ) ) + if( !haveSameFmt( other, MATCH_COLOR_SPACE | MATCH_BITS ) ) return; // TODO: Protect width and height ClpPel*** pInput = other.getPelBufferYUV();