diff options
Diffstat (limited to 'libavcodec/pnmdec.c')
-rw-r--r-- | libavcodec/pnmdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index 6d2473831b..b4b042cdf8 100644 --- a/libavcodec/pnmdec.c +++ b/libavcodec/pnmdec.c @@ -27,7 +27,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data, - int *data_size, AVPacket *avpkt) + int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; @@ -182,7 +182,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data, break; } *picture = s->picture; - *data_size = sizeof(AVPicture); + *got_frame = 1; return s->bytestream - s->bytestream_start; } |