mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
parent
ca324f9869
commit
2f21c50784
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user