summaryrefslogtreecommitdiff
path: root/libavcodec/dpx.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-05 01:38:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-05 01:41:44 +0200
commita927276fcc20c99f6e311fb9aa679d4ba1ba7e99 (patch)
tree6923a4855c083ee4182c36d75000ad9d5e4c3495 /libavcodec/dpx.c
parent23f105a83086efd58f62217bed72370e4835132a (diff)
avcodec/dpx: check packing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dpx.c')
-rw-r--r--libavcodec/dpx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 9609a5265b..f94926493a 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -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);