diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-15 20:09:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-15 22:11:26 +0100 |
commit | 2eebcda10a65e7d3b0de7f45e49e2636f9b6c8a3 (patch) | |
tree | 701a47b14120c7707b419505ed4ccef35d89ee4e /libavcodec | |
parent | c62beba49a90cc14ed7a971ffa4d5b2c7f487d3a (diff) | |
download | ffmpeg-2eebcda10a65e7d3b0de7f45e49e2636f9b6c8a3.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/screenpresso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/screenpresso.c b/libavcodec/screenpresso.c index 2fadca46b7..fb8bfd4701 100644 --- a/libavcodec/screenpresso.c +++ b/libavcodec/screenpresso.c @@ -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 = { |