aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-12-15 20:09:48 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-12-15 22:10:40 +0100
commitc62beba49a90cc14ed7a971ffa4d5b2c7f487d3a (patch)
tree415f98b9f495c2a2c70cc94b5adad031bdbab196 /libavcodec
parent745f4bcc2c1deaa562cce01fa52e38b0220aed31 (diff)
downloadffmpeg-c62beba49a90cc14ed7a971ffa4d5b2c7f487d3a.tar.gz
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.c1
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;