diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-05 01:38:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-05 01:41:44 +0200 |
commit | a927276fcc20c99f6e311fb9aa679d4ba1ba7e99 (patch) | |
tree | 6923a4855c083ee4182c36d75000ad9d5e4c3495 | |
parent | 23f105a83086efd58f62217bed72370e4835132a (diff) | |
download | ffmpeg-a927276fcc20c99f6e311fb9aa679d4ba1ba7e99.tar.gz |
avcodec/dpx: check packing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/dpx.c | 5 |
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); |