1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/dpx: add support for other single component 8bit files

This commit is contained in:
Paul B Mahol 2021-02-11 18:09:35 +01:00
parent 68fa294bf8
commit d1802e263c

View File

@ -497,6 +497,14 @@ static int decode_frame(AVCodecContext *avctx,
} }
switch (1000 * descriptor + 10 * bits_per_color + endian) { switch (1000 * descriptor + 10 * bits_per_color + endian) {
case 1081:
case 1080:
case 2081:
case 2080:
case 3081:
case 3080:
case 4081:
case 4080:
case 6081: case 6081:
case 6080: case 6080:
avctx->pix_fmt = AV_PIX_FMT_GRAY8; avctx->pix_fmt = AV_PIX_FMT_GRAY8;