You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/dpx: Allow packed 12-bit little-endian images.
Can be tested with GraphicsMagick.
This commit is contained in:
@@ -232,19 +232,6 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
stride = (avctx->width * elements + 2) / 3 * 4;
|
stride = (avctx->width * elements + 2) / 3 * 4;
|
||||||
break;
|
break;
|
||||||
case 12:
|
case 12:
|
||||||
if (!packing) {
|
|
||||||
int tested = 0;
|
|
||||||
if (descriptor == 50 && endian) { // Little endian needs tests
|
|
||||||
tested = 1;
|
|
||||||
}
|
|
||||||
if (descriptor == 51 && endian) { // Little endian needs tests
|
|
||||||
tested = 1;
|
|
||||||
}
|
|
||||||
if (!tested) {
|
|
||||||
av_log(avctx, AV_LOG_ERROR, "Packing to 16bit required\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stride = avctx->width * elements;
|
stride = avctx->width * elements;
|
||||||
if (packing) {
|
if (packing) {
|
||||||
stride *= 2;
|
stride *= 2;
|
||||||
|
Reference in New Issue
Block a user