aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2005-04-01 04:30:31 +0000
committerMike Melanson <mike@multimedia.cx>2005-04-01 04:30:31 +0000
commit29846f484586ad46ac6d8d16b19c5bf22dabf715 (patch)
treecf8f32b0580130de07a8ae9bc67f8c80377c9566
parentde39cdf542f390900304ba4674f7cd0b4950370b (diff)
downloadffmpeg-29846f484586ad46ac6d8d16b19c5bf22dabf715.tar.gz
support some more color modes; patch by Kostya
Originally committed as revision 4097 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/loco.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/loco.c b/libavcodec/loco.c
index ef77c3f4fb..cace4bb448 100644
--- a/libavcodec/loco.c
+++ b/libavcodec/loco.c
@@ -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: