aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>2015-04-16 19:12:02 +0200
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-05-14 19:05:41 +0200
commit7b13aef5d2f02e1d86653b2167e5f73c9a43aab0 (patch)
tree19d54dabac1fcf2d9c534c2d7cb10c6f13a874af
parentaebafed24fd3f3a73361bf8b221ce6875be96503 (diff)
downloadffmpeg-7b13aef5d2f02e1d86653b2167e5f73c9a43aab0.tar.gz
aasc: return correct buffer size from aasc_decode_frame
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 0be54ad280cf114c02306b7063147e8379f8ed1e) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
-rw-r--r--libavcodec/aasc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aasc.c b/libavcodec/aasc.c
index 65ef782688..469fc5eef6 100644
--- a/libavcodec/aasc.c
+++ b/libavcodec/aasc.c
@@ -137,7 +137,7 @@ static int aasc_decode_frame(AVCodecContext *avctx,
return ret;
/* report that the buffer was completely consumed */
- return buf_size;
+ return avpkt->size;
}
static av_cold int aasc_decode_end(AVCodecContext *avctx)