]> git.sesse.net Git - ffmpeg/commitdiff
lavc/dpx: Allow packed 12-bit little-endian images.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 16 Jun 2018 14:18:06 +0000 (16:18 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 16 Jun 2018 14:18:06 +0000 (16:18 +0200)
Can be tested with GraphicsMagick.

libavcodec/dpx.c

index e9f0e05ecda3dc5b1fde16b92cfc0a2382cc4f14..582a861fdc4bf62f48f47920970c9e5f82cf1feb 100644 (file)
@@ -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;