diff mbox series

[FFmpeg-devel,2/3] avcodec/brenderpix: support BGR555BE (type 17)

Message ID 20230409122543.223974-2-zane@zanevaniperen.com
State New
Headers show
Series [FFmpeg-devel,1/3] avcodec/brenderpix: remove support for type 18 pixelmaps | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Zane van Iperen April 9, 2023, 12:25 p.m. UTC
---
 libavcodec/brenderpix.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/brenderpix.c b/libavcodec/brenderpix.c
index 67b89689e7..52765f0c00 100644
--- a/libavcodec/brenderpix.c
+++ b/libavcodec/brenderpix.c
@@ -195,6 +195,10 @@  static int pix_decode_frame(AVCodecContext *avctx, AVFrame *frame,
         avctx->pix_fmt = AV_PIX_FMT_ARGB;
         bytes_pp = 4;
         break;
+    case 17:
+        avctx->pix_fmt = AV_PIX_FMT_BGR555BE;
+        bytes_pp = 2;
+        break;
     default:
         avpriv_request_sample(avctx, "Format %d", hdr.format);
         return AVERROR_PATCHWELCOME;