Browse Source

Support decoding 32bit sunrast images.

Fixes ticket #895.
tags/n0.10
Carl Eugen Hoyos 14 years ago
parent
commit
2f21c50784
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/sunrast.c

+ 3
- 0
libavcodec/sunrast.c View File

@@ -98,6 +98,9 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
case 24:
avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB24 : PIX_FMT_BGR24;
break;
case 32:
avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB0 : PIX_FMT_BGR0;
break;
default:
av_log(avctx, AV_LOG_ERROR, "invalid depth\n");
return -1;


Loading…
Cancel
Save