Commit 5205b328 authored by Jérôme Martinez's avatar Jérôme Martinez Committed by Paul B Mahol

avcodec/dpx: Support for RGBA 12-bit packed decoding

Limited to widths multiple of 2 due to lack of test files for such corner case

This partially fixes ticket #5639
parent 0d35413e
...@@ -237,6 +237,9 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -237,6 +237,9 @@ static int decode_frame(AVCodecContext *avctx,
if (descriptor == 50 && endian && (avctx->width%8) == 0) { // Little endian and widths not a multiple of 8 need tests if (descriptor == 50 && endian && (avctx->width%8) == 0) { // Little endian and widths not a multiple of 8 need tests
tested = 1; tested = 1;
} }
if (descriptor == 51 && endian && (avctx->width%2) == 0) { // Little endian and widths not a multiple of 2 need tests
tested = 1;
}
if (!tested) { if (!tested) {
av_log(avctx, AV_LOG_ERROR, "Packing to 16bit required\n"); av_log(avctx, AV_LOG_ERROR, "Packing to 16bit required\n");
return -1; return -1;
......
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