mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/screenpresso: return the packet size instead of 0
Most decoders return the amount of data used. This is more consistent Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c62beba49a
commit
2eebcda10a
@ -179,7 +179,7 @@ static int screenpresso_decode_frame(AVCodecContext *avctx, void *data,
|
||||
}
|
||||
*got_frame = 1;
|
||||
|
||||
return 0;
|
||||
return avpkt->size;
|
||||
}
|
||||
|
||||
AVCodec ff_screenpresso_decoder = {
|
||||
|
Loading…
Reference in New Issue
Block a user