[FFmpeg-cvslog] loco: fix return value.
Nicolas George
git at videolan.org
Tue Jul 31 17:35:58 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Jul 29 00:14:27 2012 +0200| [d2ca5dd0f33b0fdbb5d2a7429c8f71ff1dffffb7] | committer: Nicolas George
loco: fix return value.
The return value was the number of bytes left,
it is supposed to be the number of bytes used.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d2ca5dd0f33b0fdbb5d2a7429c8f71ff1dffffb7
---
libavcodec/loco.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/loco.c b/libavcodec/loco.c
index cc8ce21..b4f8ad4 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){
More information about the ffmpeg-cvslog
mailing list