mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
parent
09f25a9cb0
commit
febf75f3d2
@ -125,7 +125,12 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
|
||||
avctx->pix_fmt = PIX_FMT_RGB48BE;
|
||||
}
|
||||
} else if (depth == 4) {
|
||||
avctx->pix_fmt = PIX_FMT_RGB32;
|
||||
if (maxval < 256) {
|
||||
avctx->pix_fmt = PIX_FMT_RGB32;
|
||||
} else {
|
||||
av_log(avctx, AV_LOG_ERROR, "Unsupported bit depth\n");
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user