From c62beba49a90cc14ed7a971ffa4d5b2c7f487d3a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 15 Dec 2016 20:09:48 +0100 Subject: [PATCH] avcodec/rscc: return the packet size instead of 0 Most decoders return the amount of data used. This is more consistent Reviewed-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/rscc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c index d01f05c022..f13706cd75 100644 --- a/libavcodec/rscc.c +++ b/libavcodec/rscc.c @@ -324,6 +324,7 @@ static int rscc_decode_frame(AVCodecContext *avctx, void *data, } *got_frame = 1; + ret = avpkt->size; end: av_free(inflated_tiles); return ret; -- 2.11.0