diff options
author | Steve Lhomme <robUx4@videolabs.io> | 2015-03-03 12:06:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-21 01:52:51 +0100 |
commit | 55637b2e5e9a27c6176e3ccd0a8730cc16206530 (patch) | |
tree | 5004f2f0e6b293aac762896dc50496d04ccd712d | |
parent | e6bc1fe10c56d7f9712679a31cb9a79457556b1c (diff) | |
download | ffmpeg-55637b2e5e9a27c6176e3ccd0a8730cc16206530.tar.gz |
fix VP9 packet decoder returning 0 instead of the used data size
See https://trac.videolan.org/vlc/ticket/14022#comment:6
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4851db80a4f80ddade1d50d2ec741375c763f001)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 07df9ef75d..a956567254 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -3748,7 +3748,7 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame, if ((res = av_frame_ref(frame, s->refs[ref].f)) < 0) return res; *got_frame = 1; - return 0; + return pkt->size; } data += res; size -= res; @@ -3972,7 +3972,7 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame, *got_frame = 1; } - return 0; + return pkt->size; } static void vp9_decode_flush(AVCodecContext *ctx) |