From df9b9567518f2840d79a4a96b447ebe1aa326408 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 13 Nov 2012 19:35:22 +0100 Subject: lavc: fix decode_frame() third parameter semantics for video decoders It's got_frame, not data size --- libavcodec/kgv1dec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavcodec/kgv1dec.c') diff --git a/libavcodec/kgv1dec.c b/libavcodec/kgv1dec.c index 719192cc9b..fc99b21a58 100644 --- a/libavcodec/kgv1dec.c +++ b/libavcodec/kgv1dec.c @@ -43,7 +43,8 @@ static void decode_flush(AVCodecContext *avctx) avctx->release_buffer(avctx, &c->prev); } -static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) +static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, + AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = buf + avpkt->size; @@ -155,7 +156,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac if (outcnt - maxcnt) av_log(avctx, AV_LOG_DEBUG, "frame finished with %d diff\n", outcnt - maxcnt); - *data_size = sizeof(AVFrame); + *got_frame = 1; *(AVFrame*)data = c->cur; if (c->prev.data[0]) -- cgit v1.2.3