support some more color modes; patch by Kostya

Originally committed as revision 4097 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Kostya Shishkov 2005-04-01 04:30:31 +00:00 committed by Mike Melanson
parent de39cdf542
commit 29846f4845
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
#include "bitstream.h"
#include "golomb.h"
enum LOCO_MODE {LOCO_UNKN=0, LOCO_CYUY2=-1, LOCO_CRGB=-2, LOCO_CYV12=-3,
enum LOCO_MODE {LOCO_UNKN=0, LOCO_CYUY2=-1, LOCO_CRGB=-2, LOCO_CRGBA=-3, LOCO_CYV12=-4,
LOCO_YUY2=1, LOCO_UYVY=2, LOCO_RGB=3, LOCO_RGBA=4, LOCO_YV12=5};
typedef struct LOCOContext{
@ -259,7 +259,7 @@ static int decode_init(AVCodecContext *avctx){
case LOCO_CYV12: case LOCO_YV12:
avctx->pix_fmt = PIX_FMT_YUV420P;
break;
case LOCO_RGBA:
case LOCO_CRGBA: case LOCO_RGBA:
avctx->pix_fmt = PIX_FMT_RGBA32;
break;
default: