|
|
@@ -234,10 +234,10 @@ static int decode_frame(AVCodecContext *avctx, |
|
|
case 12: |
|
|
case 12: |
|
|
if (!packing) { |
|
|
if (!packing) { |
|
|
int tested = 0; |
|
|
int tested = 0; |
|
|
if (descriptor == 50 && endian && (avctx->width%8) == 0) { // Little endian and widths not a multiple of 8 need tests |
|
|
|
|
|
|
|
|
if (descriptor == 50 && endian) { // Little endian needs tests |
|
|
tested = 1; |
|
|
tested = 1; |
|
|
} |
|
|
} |
|
|
if (descriptor == 51 && endian && (avctx->width%2) == 0) { // Little endian and widths not a multiple of 2 need tests |
|
|
|
|
|
|
|
|
if (descriptor == 51 && endian) { // Little endian needs tests |
|
|
tested = 1; |
|
|
tested = 1; |
|
|
} |
|
|
} |
|
|
if (!tested) { |
|
|
if (!tested) { |
|
|
@@ -422,6 +422,7 @@ static int decode_frame(AVCodecContext *avctx, |
|
|
&n_datum, endian); |
|
|
&n_datum, endian); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
n_datum = 0; |
|
|
for (i = 0; i < elements; i++) |
|
|
for (i = 0; i < elements; i++) |
|
|
ptr[i] += p->linesize[i]; |
|
|
ptr[i] += p->linesize[i]; |
|
|
// Jump to next aligned position |
|
|
// Jump to next aligned position |
|
|
|