diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-15 22:09:48 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-16 00:10:40 +0300 |
commit | c62beba49a90cc14ed7a971ffa4d5b2c7f487d3a (patch) | |
tree | 415f98b9f495c2a2c70cc94b5adad031bdbab196 /libavcodec | |
parent | 745f4bcc2c1deaa562cce01fa52e38b0220aed31 (diff) |
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 <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/rscc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |