Commit 4851db80 authored by Steve Lhomme's avatar Steve Lhomme Committed by Michael Niedermayer

fix VP9 packet decoder returning 0 instead of the used data size

See https://trac.videolan.org/vlc/ticket/14022#comment:6Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2578a546
...@@ -3760,7 +3760,7 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame, ...@@ -3760,7 +3760,7 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame,
if ((res = av_frame_ref(frame, s->refs[ref].f)) < 0) if ((res = av_frame_ref(frame, s->refs[ref].f)) < 0)
return res; return res;
*got_frame = 1; *got_frame = 1;
return 0; return pkt->size;
} }
data += res; data += res;
size -= res; size -= res;
...@@ -3984,7 +3984,7 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame, ...@@ -3984,7 +3984,7 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame,
*got_frame = 1; *got_frame = 1;
} }
return 0; return pkt->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