diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-01-31 14:04:51 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-01-31 14:06:07 +0100 |
commit | 47be08640cfabecbe277306a23a2f45503ca6d5b (patch) | |
tree | 42771ecfd92f710d18a1c275b463f8a4c027072f /libavcodec | |
parent | d16b0a4bf0830db852ce404210e293f6ae26559f (diff) | |
download | ffmpeg-47be08640cfabecbe277306a23a2f45503ca6d5b.tar.gz |
avcodec/pnm: disable check for PFM as it is not needed
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pnm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c index aad23c7ae2..94ae74e13a 100644 --- a/libavcodec/pnm.c +++ b/libavcodec/pnm.c @@ -218,7 +218,8 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) return AVERROR_INVALIDDATA; /* more check if YUV420 */ - if (av_pix_fmt_desc_get(avctx->pix_fmt)->flags & AV_PIX_FMT_FLAG_PLANAR) { + if ((av_pix_fmt_desc_get(avctx->pix_fmt)->flags & AV_PIX_FMT_FLAG_PLANAR) && + avctx->pix_fmt != AV_PIX_FMT_GBRPF32) { if ((avctx->width & 1) != 0) return AVERROR_INVALIDDATA; h = (avctx->height * 2); |