avcodec/dpx: check packing
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Oct 2013 23:38:47 +0000 (01:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Oct 2013 23:41:44 +0000 (01:41 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dpx.c

index 9609a52..f949264 100644 (file)
@@ -129,6 +129,11 @@ static int decode_frame(AVCodecContext *avctx,
     packing = read16(&buf, endian);
     encoding = read16(&buf, endian);
 
+    if (packing > 1) {
+        avpriv_report_missing_feature(avctx,
+                                      "Unsupported packing %d\n", packing);
+        return AVERROR_PATCHWELCOME;
+    }
     if (encoding) {
         avpriv_report_missing_feature(avctx,
                                       "Unsupported encoding %d\n", encoding);