mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavc/rawdec: Align AV_PIX_FMT_RGB24 correctly
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
3a4232a1a0
commit
cf85a20d92
@ -384,11 +384,12 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
|
||||
}
|
||||
}
|
||||
|
||||
if ((avctx->pix_fmt==AV_PIX_FMT_BGR24 ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_GRAY8 ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_RGB555LE ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_RGB555BE ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_RGB565LE ||
|
||||
if ((avctx->pix_fmt==AV_PIX_FMT_RGB24 ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_BGR24 ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_GRAY8 ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_RGB555LE ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_RGB555BE ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_RGB565LE ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_MONOWHITE ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_MONOBLACK ||
|
||||
avctx->pix_fmt==AV_PIX_FMT_PAL8) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user