diff options
author | Steve Lhomme <robUx4@videolabs.io> | 2015-03-03 12:06:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-03 13:48:51 +0100 |
commit | 4851db80a4f80ddade1d50d2ec741375c763f001 (patch) | |
tree | d78a610fa279b264a32d8df0a8a0df98fb8ba4b6 /libavcodec/vp9.c | |
parent | 2578a546183da09d49d5bba8ab5e982dece1dede (diff) | |
download | ffmpeg-4851db80a4f80ddade1d50d2ec741375c763f001.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>
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 2bb2432265..c7f351bdd7 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -3760,7 +3760,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; @@ -3984,7 +3984,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) |