Browse Source

avcodec/huffyuvdec: use RGB0 for 24bit rgb output instead of BGRA

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
9bb1af8f36
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      libavcodec/huffyuvdec.c

+ 6
- 3
libavcodec/huffyuvdec.c View File

@@ -361,14 +361,17 @@ static av_cold int decode_init(AVCodecContext *avctx)
s->yuv = 1;
break;
case 24:
case 32:
if (s->bgr32) {
avctx->pix_fmt = AV_PIX_FMT_RGB32;
s->alpha = 1;
avctx->pix_fmt = AV_PIX_FMT_0RGB32;
} else {
avctx->pix_fmt = AV_PIX_FMT_BGR24;
}
break;
case 32:
av_assert0(s->bgr32);
avctx->pix_fmt = AV_PIX_FMT_RGB32;
s->alpha = 1;
break;
default:
return AVERROR_INVALIDDATA;
}


Loading…
Cancel
Save