ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Thu Dec 15 20:09:48 2016 +0100| [2eebcda10a65e7d3b0de7f45e49e2636f9b6c8a3] | committer: 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: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2eebcda10a65e7d3b0de7f45e49e2636f9b6c8a3 --- libavcodec/screenpresso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/screenpresso.c b/libavcodec/screenpresso.c index 2fadca4..fb8bfd4 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 = { _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
