28
29
static int pnm_decode_frame(AVCodecContext *avctx, void *data,
31
32
const uint8_t *buf = avpkt->data;
32
33
int buf_size = avpkt->size;
33
34
PNMContext * const s = avctx->priv_data;
36
37
int i, j, n, linesize, h, upgrade = 0;
38
39
int components, sample_len;