From dae38a66ebd8a71aad51a29311f1c50df3ae3a2e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 4 Mar 2013 18:17:47 +0100 Subject: [PATCH] dnxhddec: return the correct number of bytes from decode_frame Fixes Ticket2022 Signed-off-by: Michael Niedermayer --- libavcodec/dnxhddec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index 0af685e28b..429d9a518a 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxhddec.c @@ -406,7 +406,7 @@ static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, *picture = ctx->picture; *got_frame = 1; - return buf_size; + return avpkt->size; } static av_cold int dnxhd_decode_close(AVCodecContext *avctx)