summaryrefslogtreecommitdiff
path: root/libavcodec/dpx.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-10-08 11:29:29 +0000
committerPaul B Mahol <onemda@gmail.com>2013-10-08 12:40:33 +0000
commit3abbf20962f7285e0bcdb511aab14b600ddfe345 (patch)
tree1cc13c1609e61aed694c41a600295ef5fd5a887d /libavcodec/dpx.c
parent361b56c37962e0f57a67a505d8f0aa03ba4818c0 (diff)
dpx: abgr support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/dpx.c')
-rw-r--r--libavcodec/dpx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 4b997e421f..8468720615 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -152,6 +152,7 @@ static int decode_frame(AVCodecContext *avctx,
case 6: // Y
elements = 1;
break;
+ case 52: // ABGR
case 51: // RGBA
elements = 4;
break;
@@ -202,6 +203,10 @@ static int decode_frame(AVCodecContext *avctx,
case 50080:
avctx->pix_fmt = AV_PIX_FMT_RGB24;
break;
+ case 52081:
+ case 52080:
+ avctx->pix_fmt = AV_PIX_FMT_ABGR;
+ break;
case 51081:
case 51080:
avctx->pix_fmt = AV_PIX_FMT_RGBA;