Commit a927276f authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dpx: check packing

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 23f105a8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment