Skip to content

Commit

Permalink
Fix swapped RGB<=>BGR in rgb48
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Apr 18, 2024
1 parent 3f2c93d commit d676835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/videosource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,8 @@ static const std::map<AVPixelFormat, p2p_packing> FormatMap = {
{ AV_PIX_FMT_0BGR, p2p_rgba32_le },
{ AV_PIX_FMT_BGR0, p2p_argb32_le },

{ AV_PIX_FMT_RGB48BE, p2p_rgb48_be },
{ AV_PIX_FMT_RGB48LE, p2p_rgb48_le },
{ AV_PIX_FMT_RGB48BE, p2p_bgr48_be },
{ AV_PIX_FMT_RGB48LE, p2p_bgr48_le },

{ AV_PIX_FMT_RGBA64LE, p2p_rgba64_le },
{ AV_PIX_FMT_RGBA64BE, p2p_rgba64_be },
Expand Down

0 comments on commit d676835

Please sign in to comment.