aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Lhomme <robUx4@videolabs.io>2015-03-03 12:06:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-29 03:34:22 +0200
commit2a6f0c7e077eee6d834a58a5193e374bbfe18285 (patch)
tree22c5aed2747d8ed251c170aefa1deaac254f5510
parenta80b38d7d24863a8275d73cc4e041761ce5257cc (diff)
downloadffmpeg-2a6f0c7e077eee6d834a58a5193e374bbfe18285.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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 2239bd61d7..c8653d048d 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -3747,7 +3747,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;
@@ -3957,7 +3957,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)