mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avcodec/wcmv: fix output on big-endian with rgb565 format
This commit is contained in:
parent
d8ad8fd8bd
commit
af71a3ff3e
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||
int zret;
|
||||
|
||||
switch (avctx->bits_per_coded_sample) {
|
||||
case 16: avctx->pix_fmt = AV_PIX_FMT_RGB565; break;
|
||||
case 16: avctx->pix_fmt = AV_PIX_FMT_RGB565LE; break;
|
||||
case 24: avctx->pix_fmt = AV_PIX_FMT_BGR24; break;
|
||||
case 32: avctx->pix_fmt = AV_PIX_FMT_BGRA; break;
|
||||
default: av_log(avctx, AV_LOG_ERROR, "Unsupported bits_per_coded_sample: %d\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue