summaryrefslogtreecommitdiff
path: root/libavcodec/dpx.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-06-16 16:18:06 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-06-16 16:18:06 +0200
commit07d1c4ae3f45bda6085e55a16e8b79aa4fd0bde9 (patch)
treefb0665ef71a6362d27779bc13472538397203620 /libavcodec/dpx.c
parent70742f02642cce110111e760d7d2e1abf9e70f4d (diff)
lavc/dpx: Allow packed 12-bit little-endian images.
Can be tested with GraphicsMagick.
Diffstat (limited to 'libavcodec/dpx.c')
-rw-r--r--libavcodec/dpx.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index e9f0e05ecd..582a861fdc 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -232,19 +232,6 @@ static int decode_frame(AVCodecContext *avctx,
stride = (avctx->width * elements + 2) / 3 * 4;
break;
case 12:
- if (!packing) {
- int tested = 0;
- if (descriptor == 50 && endian) { // Little endian needs tests
- tested = 1;
- }
- if (descriptor == 51 && endian) { // Little endian needs tests
- tested = 1;
- }
- if (!tested) {
- av_log(avctx, AV_LOG_ERROR, "Packing to 16bit required\n");
- return -1;
- }
- }
stride = avctx->width * elements;
if (packing) {
stride *= 2;