diff mbox series

[FFmpeg-devel,2/2] avcodec/dpx: add support for other single component 8bit files

Message ID 20210211175320.1045-2-onemda@gmail.com
State Accepted
Commit d1802e263c21686f95f51dc0002bc396209e8479
Headers show
Series [FFmpeg-devel,1/2] avcodec/dpx: add float support for single components and rgb(a) | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Paul B Mahol Feb. 11, 2021, 5:53 p.m. UTC
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavcodec/dpx.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 702caa385e..5372e3d586 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -497,6 +497,14 @@  static int decode_frame(AVCodecContext *avctx,
     }
 
     switch (1000 * descriptor + 10 * bits_per_color + endian) {
+    case 1081:
+    case 1080:
+    case 2081:
+    case 2080:
+    case 3081:
+    case 3080:
+    case 4081:
+    case 4080:
     case 6081:
     case 6080:
         avctx->pix_fmt = AV_PIX_FMT_GRAY8;