summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/dpx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index ed17bf3858..cb7a93473f 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -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];
}