Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-12-15 22:09:48 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-12-16 00:11:26 +0300
commit2eebcda10a65e7d3b0de7f45e49e2636f9b6c8a3 (patch)
tree701a47b14120c7707b419505ed4ccef35d89ee4e /libavcodec/screenpresso.c
parentc62beba49a90cc14ed7a971ffa4d5b2c7f487d3a (diff)
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/screenpresso.c')
-rw-r--r--libavcodec/screenpresso.c2
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 = {