[FFmpeg-devel] [PATCH 2/3] avcodec/brenderpix: support BGR555BE (type 17)
Zane van Iperen
zane at zanevaniperen.com
Sun Apr 9 15:25:42 EEST 2023
---
libavcodec/brenderpix.c | 4 ++++
1 file changed, 4 insertions(+)
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;
--
2.39.2
More information about the ffmpeg-devel
mailing list