Commit 2f21c507 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Support decoding 32bit sunrast images.

Fixes ticket #895.
parent ca324f98
...@@ -98,6 +98,9 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data, ...@@ -98,6 +98,9 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
case 24: case 24:
avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB24 : PIX_FMT_BGR24; avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB24 : PIX_FMT_BGR24;
break; break;
case 32:
avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB0 : PIX_FMT_BGR0;
break;
default: default:
av_log(avctx, AV_LOG_ERROR, "invalid depth\n"); av_log(avctx, AV_LOG_ERROR, "invalid depth\n");
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment