Commit 2eebcda1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/screenpresso: return the packet size instead of 0

Most decoders return the amount of data used.
This is more consistent
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c62beba4
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment