Skip to content
Snippets Groups Projects
Commit d2ca5dd0 authored by Nicolas George's avatar Nicolas George
Browse files

loco: fix return value.

The return value was the number of bytes left,
it is supposed to be the number of bytes used.
parent 91ec1c6c
No related branches found
No related tags found
No related merge requests found
...@@ -233,7 +233,7 @@ stop: ...@@ -233,7 +233,7 @@ stop:
*data_size = sizeof(AVFrame); *data_size = sizeof(AVFrame);
*(AVFrame*)data = l->pic; *(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){ static av_cold int decode_init(AVCodecContext *avctx){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment