[FFmpeg-cvslog] r20936 - trunk/libavcodec/interplayvideo.c
kostya
subversion
Sun Dec 27 15:07:21 CET 2009
Author: kostya
Date: Sun Dec 27 15:07:21 2009
New Revision: 20936
Log:
16-bit Interplay video does not need palette control
Modified:
trunk/libavcodec/interplayvideo.c
Modified: trunk/libavcodec/interplayvideo.c
==============================================================================
--- trunk/libavcodec/interplayvideo.c Sun Dec 27 13:20:06 2009 (r20935)
+++ trunk/libavcodec/interplayvideo.c Sun Dec 27 15:07:21 2009 (r20936)
@@ -1017,13 +1017,13 @@ static av_cold int ipvideo_decode_init(A
s->avctx = avctx;
- if (s->avctx->palctrl == NULL) {
+ s->is_16bpp = avctx->bits_per_coded_sample == 16;
+ avctx->pix_fmt = s->is_16bpp ? PIX_FMT_RGB555 : PIX_FMT_PAL8;
+ if (!s->is_16bpp && s->avctx->palctrl == NULL) {
av_log(avctx, AV_LOG_ERROR, " Interplay video: palette expected.\n");
return -1;
}
- s->is_16bpp = avctx->bits_per_coded_sample == 16;
- avctx->pix_fmt = s->is_16bpp ? PIX_FMT_RGB555 : PIX_FMT_PAL8;
dsputil_init(&s->dsp, avctx);
/* decoding map contains 4 bits of information per 8x8 block */
More information about the ffmpeg-cvslog
mailing list