Browse Source

loco: fix return value.

The return value was the number of bytes left,
it is supposed to be the number of bytes used.
tags/n1.0
Nicolas George 13 years ago
parent
commit
d2ca5dd0f3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/loco.c

+ 1
- 1
libavcodec/loco.c View File

@@ -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){


Loading…
Cancel
Save