You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed a bug with bitshifting float color values. ImageMagick can be built with different types of Quantum color values, and Im trying to make libopenshot work seemlessl with them.
This commit is contained in:
@@ -265,9 +265,9 @@ void DeckLinkOutputDelegate::WriteFrame(tr1::shared_ptr<openshot::Frame> frame)
|
||||
{
|
||||
// Update buffer (which is already linked to the AVFrame: pFrameRGB)
|
||||
castBytes[row] = 0; // alpha
|
||||
castBytes[row+1] = pixel_packets[packet].red >> bit_shift;
|
||||
castBytes[row+2] = pixel_packets[packet].green >> bit_shift;
|
||||
castBytes[row+3] = pixel_packets[packet].blue >> bit_shift;
|
||||
castBytes[row+1] = (int) pixel_packets[packet].red >> bit_shift;
|
||||
castBytes[row+2] = (int) pixel_packets[packet].green >> bit_shift;
|
||||
castBytes[row+3] = (int) pixel_packets[packet].blue >> bit_shift;
|
||||
}
|
||||
|
||||
#pragma omp critical (blackmagic_output_queue)
|
||||
|
||||
Reference in New Issue
Block a user