aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-04 18:17:47 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-18 03:34:25 +0100
commit3d5323a351a1cd09319c8db2d8b72707f1f63aa3 (patch)
tree2c0a7692118cc76ae4740fd2fede7f973ec12a10
parent69659389a3a423cf6320abaa549821d303ac1892 (diff)
downloadffmpeg-3d5323a351a1cd09319c8db2d8b72707f1f63aa3.tar.gz
dnxhddec: return the correct number of bytes from decode_frame
Fixes Ticket2022 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit dae38a66ebd8a71aad51a29311f1c50df3ae3a2e) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/dnxhddec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 0fe03f9978..104b94354c 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)