Commit c2f3715c authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

vp9: always consume the full input packet

Reviewed-by: 's avatar"Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 88c27193
...@@ -3495,14 +3495,14 @@ static int vp9_decode_packet(AVCodecContext *avctx, void *out_pic, ...@@ -3495,14 +3495,14 @@ static int vp9_decode_packet(AVCodecContext *avctx, void *out_pic,
case_n(3, AV_RL24(idx)); case_n(3, AV_RL24(idx));
case_n(4, AV_RL32(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 // 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 // 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) if ((res = vp9_decode_frame(avctx, out_pic, got_frame, data, size)) < 0)
return res; return res;
return size; return avpkt->size;
} }
static void vp9_decode_flush(AVCodecContext *ctx) static void vp9_decode_flush(AVCodecContext *ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment