summaryrefslogtreecommitdiff
path: root/libavcodec/cscd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/cscd.c')
-rw-r--r--libavcodec/cscd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/cscd.c b/libavcodec/cscd.c
index fd513d8402..9b87c1b91d 100644
--- a/libavcodec/cscd.c
+++ b/libavcodec/cscd.c
@@ -65,8 +65,8 @@ static void add_frame_default(AVFrame *f, const uint8_t *src,
}
}
-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)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
@@ -123,7 +123,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
}
*got_frame = 1;
- if ((ret = av_frame_ref(data, c->pic)) < 0)
+ if ((ret = av_frame_ref(rframe, c->pic)) < 0)
return ret;
return buf_size;