diff options
-rw-r--r-- | libavcodec/loco.c | 2 |
1 files changed, 1 insertions, 1 deletions
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){ |