summaryrefslogtreecommitdiff
path: root/libavcodec/pafvideo.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/pafvideo.c')
-rw-r--r--libavcodec/pafvideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pafvideo.c b/libavcodec/pafvideo.c
index 68f6b9b4df..3199e7f44c 100644
--- a/libavcodec/pafvideo.c
+++ b/libavcodec/pafvideo.c
@@ -268,7 +268,7 @@ static int decode_0(PAFVideoDecContext *c, uint8_t *pkt, uint8_t code)
return 0;
}
-static int paf_video_decode(AVCodecContext *avctx, void *data,
+static int paf_video_decode(AVCodecContext *avctx, AVFrame *rframe,
int *got_frame, AVPacket *pkt)
{
PAFVideoDecContext *c = avctx->priv_data;
@@ -400,7 +400,7 @@ static int paf_video_decode(AVCodecContext *avctx, void *data,
c->width, c->height);
c->current_frame = (c->current_frame + 1) & 3;
- if ((ret = av_frame_ref(data, c->pic)) < 0)
+ if ((ret = av_frame_ref(rframe, c->pic)) < 0)
return ret;
*got_frame = 1;