[FFmpeg-cvslog] avcodec/dpx: Support for RGBA 12-bit packed decoding

Jérôme Martinez git at videolan.org
Fri Jun 1 12:52:44 EEST 2018


ffmpeg | branch: master | Jérôme Martinez <jerome at mediaarea.net> | Fri Jun  1 10:09:01 2018 +0200| [5205b3289e46b680c314e44a9243929b6d00146a] | committer: Paul B Mahol

avcodec/dpx: Support for RGBA 12-bit packed decoding

Limited to widths multiple of 2 due to lack of test files for such corner case

This partially fixes ticket #5639

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5205b3289e46b680c314e44a9243929b6d00146a
---

 libavcodec/dpx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 026fb10e90..fb388b6e52 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -237,6 +237,9 @@ static int decode_frame(AVCodecContext *avctx,
             if (descriptor == 50 && endian && (avctx->width%8) == 0) { // Little endian and widths not a multiple of 8 need tests
                 tested = 1;
             }
+            if (descriptor == 51 && endian && (avctx->width%2) == 0) { // Little endian and widths not a multiple of 2 need tests
+                tested = 1;
+            }
             if (!tested) {
                 av_log(avctx, AV_LOG_ERROR, "Packing to 16bit required\n");
                 return -1;



More information about the ffmpeg-cvslog mailing list