diff options
Diffstat (limited to 'libavcodec/pnmenc.c')
-rw-r--r-- | libavcodec/pnmenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/pnmenc.c b/libavcodec/pnmenc.c index 69e6bed657..2619d90c85 100644 --- a/libavcodec/pnmenc.c +++ b/libavcodec/pnmenc.c @@ -34,8 +34,10 @@ static av_cold int common_init(AVCodecContext *avctx){ static int pnm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - const uint8_t *buf, int buf_size) + AVPacket *avpkt) { + const uint8_t *buf = avpkt->data; + int buf_size = avpkt->size; PNMContext * const s = avctx->priv_data; AVFrame *picture = data; AVFrame * const p= (AVFrame*)&s->picture; |