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/eamad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/eamad.c') diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index ec74051b2f..9f4d85878a 100644 --- a/libavcodec/eamad.c +++ b/libavcodec/eamad.c @@ -219,7 +219,7 @@ static void calc_quant_matrix(MadContext *s, int qscale) } static int decode_frame(AVCodecContext *avctx, - void *data, int *data_size, + void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; @@ -232,7 +232,7 @@ static int decode_frame(AVCodecContext *avctx, if (buf_size < 17) { av_log(avctx, AV_LOG_ERROR, "Input buffer too small\n"); - *data_size = 0; + *got_frame = 0; return -1; } @@ -274,7 +274,7 @@ static int decode_frame(AVCodecContext *avctx, for (s->mb_x=0; s->mb_x < (avctx->width +15)/16; s->mb_x++) decode_mb(s, inter); - *data_size = sizeof(AVFrame); + *got_frame = 1; *(AVFrame*)data = s->frame; if (chunk_type != MADe_TAG) -- cgit v1.2.3