diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-10-22 19:57:56 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-22 20:52:40 +0400 |
commit | c2f3715cb3fce093137591e3005de3e831b1f9fd (patch) | |
tree | 9f1d20011b38e56b6b09fadac0a0d6a3780ca960 /libavcodec/vp9.c | |
parent | 88c27193c7fde3eb3f3056643ff62a44354cb77a (diff) |
vp9: always consume the full input packet
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 1d0646023d..cb14ec4e72 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -3495,14 +3495,14 @@ static int vp9_decode_packet(AVCodecContext *avctx, void *out_pic, case_n(3, AV_RL24(idx)); case_n(4, AV_RL32(idx)); } - return size; + return avpkt->size; } } // if we get here, there was no valid superframe index, i.e. this is just // one whole single frame - decode it as such from the complete input buf if ((res = vp9_decode_frame(avctx, out_pic, got_frame, data, size)) < 0) return res; - return size; + return avpkt->size; } static void vp9_decode_flush(AVCodecContext *ctx) |