diff options
Diffstat (limited to 'libavcodec/anm.c')
-rw-r--r-- | libavcodec/anm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/anm.c b/libavcodec/anm.c index 8b05a20eb8..5e07247992 100644 --- a/libavcodec/anm.c +++ b/libavcodec/anm.c @@ -108,9 +108,8 @@ exhausted: return 1; } -static int decode_frame(AVCodecContext *avctx, - void *data, int *got_frame, - AVPacket *avpkt) +static int decode_frame(AVCodecContext *avctx, AVFrame *rframe, + int *got_frame, AVPacket *avpkt) { AnmContext *s = avctx->priv_data; const int buf_size = avpkt->size; @@ -176,7 +175,7 @@ static int decode_frame(AVCodecContext *avctx, memcpy(s->frame->data[1], s->palette, AVPALETTE_SIZE); *got_frame = 1; - if ((ret = av_frame_ref(data, s->frame)) < 0) + if ((ret = av_frame_ref(rframe, s->frame)) < 0) return ret; return buf_size; |