loco: fix rgba on big-endian

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/9/head
Piotr Bandurski 12 years ago committed by Michael Niedermayer
parent a084884b62
commit 9c50e69385
  1. 2
      libavcodec/loco.c

@ -287,7 +287,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
break; break;
case LOCO_CRGBA: case LOCO_CRGBA:
case LOCO_RGBA: case LOCO_RGBA:
avctx->pix_fmt = AV_PIX_FMT_RGB32; avctx->pix_fmt = AV_PIX_FMT_BGRA;
break; break;
default: default:
av_log(avctx, AV_LOG_INFO, "Unknown colorspace, index = %i\n", l->mode); av_log(avctx, AV_LOG_INFO, "Unknown colorspace, index = %i\n", l->mode);

Loading…
Cancel
Save