mirror of https://git.ffmpeg.org/ffmpeg.git
parent
ee884c3023
commit
19b945dc2a
|
@ -113,9 +113,9 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
|
|||
if (depth == 1) {
|
||||
if (maxval == 1) {
|
||||
avctx->pix_fmt = PIX_FMT_MONOWHITE;
|
||||
} else if (maxval == 255) {
|
||||
} else if (maxval == 255) {
|
||||
avctx->pix_fmt = PIX_FMT_GRAY8;
|
||||
} else {
|
||||
} else {
|
||||
avctx->pix_fmt = PIX_FMT_GRAY16BE;
|
||||
}
|
||||
} else if (depth == 3) {
|
||||
|
|
Loading…
Reference in New Issue