From 265d884eb076aca31a84596a41eb8b9db96db6b4 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 20 May 2015 19:24:54 +0200 Subject: [PATCH] avcodec/vmnc: Add back adapted comment about 24bit Signed-off-by: Michael Niedermayer --- libavcodec/vmnc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c index f0033685d7..58bd0e26ae 100644 --- a/libavcodec/vmnc.c +++ b/libavcodec/vmnc.c @@ -537,6 +537,8 @@ static av_cold int decode_init(AVCodecContext *avctx) avctx->pix_fmt = AV_PIX_FMT_RGB555; break; case 24: + /* 24 bits is not technically supported, but some clients might + * mistakenly set it, so let's assume they actually meant 32 bits */ c->bpp = 32; case 32: avctx->pix_fmt = AV_PIX_FMT_0RGB32;