History

avcodec/pnm: disable check for PFM as it is not needed

Paul B Mahol committed 5 years ago

Commit 47be0861 parent d16b0a41 file · +2 −1Browse files

Unified · Split

libavcodec/pnm.c+2−1
@@ -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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t