avcodec/dpx: add support for special encoding
authorPaul B Mahol <onemda@gmail.com>
Thu, 6 Dec 2018 19:31:51 +0000 (20:31 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 7 Dec 2018 18:44:57 +0000 (19:44 +0100)
libavcodec/dpx.c

index ed17bf3..cb7a934 100644 (file)
@@ -422,7 +422,8 @@ static int decode_frame(AVCodecContext *avctx,
                     read10in32(&buf, &rgbBuffer,
                                &n_datum, endian, shift);
             }
-            n_datum = 0;
+            if (memcmp(input_device, "Scanity", 7))
+                n_datum = 0;
             for (i = 0; i < elements; i++)
                 ptr[i] += p->linesize[i];
         }