aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-07-29 00:14:27 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-07-31 17:25:42 +0200
commitd2ca5dd0f33b0fdbb5d2a7429c8f71ff1dffffb7 (patch)
tree9335712f7407648a850e089bc077f5020cae733b
parent91ec1c6cc35e3c7950fa5acf80568672ad538f14 (diff)
downloadffmpeg-d2ca5dd0f33b0fdbb5d2a7429c8f71ff1dffffb7.tar.gz
loco: fix return value.
The return value was the number of bytes left, it is supposed to be the number of bytes used.
-rw-r--r--libavcodec/loco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/loco.c b/libavcodec/loco.c
index cc8ce21c12..b4f8ad4424 100644
--- a/libavcodec/loco.c
+++ b/libavcodec/loco.c
@@ -233,7 +233,7 @@ stop:
*data_size = sizeof(AVFrame);
*(AVFrame*)data = l->pic;
- return buf_size < 0 ? -1 : buf_size;
+ return buf_size < 0 ? -1 : avpkt->size - buf_size;
}
static av_cold int decode_init(AVCodecContext *avctx){