mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
loco: fix return value.
The return value was the number of bytes left, it is supposed to be the number of bytes used.
This commit is contained in:
parent
91ec1c6cc3
commit
d2ca5dd0f3
@ -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…
Reference in New Issue
Block a user