[FFmpeg-cvslog] dnxhddec: return the correct number of bytes from decode_frame
Michael Niedermayer
git at videolan.org
Mon Mar 4 18:46:33 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 4 18:17:47 2013 +0100| [dae38a66ebd8a71aad51a29311f1c50df3ae3a2e] | committer: Michael Niedermayer
dnxhddec: return the correct number of bytes from decode_frame
Fixes Ticket2022
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dae38a66ebd8a71aad51a29311f1c50df3ae3a2e
---
libavcodec/dnxhddec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 0af685e..429d9a5 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)
More information about the ffmpeg-cvslog
mailing list