Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -218,7 +218,8 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) · 217 unmodified lines | |||
| 218 | return AVERROR_INVALIDDATA; | 218 | return AVERROR_INVALIDDATA; |
| 219 | 219 | ||
| 220 | /* more check if YUV420 */ | 220 | /* more check if YUV420 */ |
| 221 | if (av_pix_fmt_desc_get(avctx->pix_fmt)->flags & AV_PIX_FMT_FLAG_PLANAR) { | 221 | if ((av_pix_fmt_desc_get(avctx->pix_fmt)->flags & AV_PIX_FMT_FLAG_PLANAR) && |
| 222 | avctx->pix_fmt != AV_PIX_FMT_GBRPF32) { | ||
| 222 | if ((avctx->width & 1) != 0) | 223 | if ((avctx->width & 1) != 0) |
| 223 | return AVERROR_INVALIDDATA; | 224 | return AVERROR_INVALIDDATA; |
| 224 | h = (avctx->height * 2); | 225 | h = (avctx->height * 2); |