Skip to content

Commit c0f29c0

Browse files
Add RGB24
1 parent 5007ec8 commit c0f29c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/zm_image.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5550,6 +5550,10 @@ AVPixelFormat Image::AVPixFormat(AVPixelFormat new_pixelformat) {
55505550
colours = ZM_COLOUR_RGB24;
55515551
subpixelorder = ZM_SUBPIX_ORDER_BGR;
55525552
break;
5553+
case AV_PIX_FMT_RGB24:
5554+
colours = ZM_COLOUR_RGB24;
5555+
subpixelorder = ZM_SUBPIX_ORDER_RGB;
5556+
break;
55535557
case AV_PIX_FMT_GRAY8:
55545558
colours = ZM_COLOUR_GRAY8;
55555559
break;

0 commit comments

Comments
 (0)