summaryrefslogtreecommitdiff
path: root/libavcodec/msrledec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-08-26 15:37:13 +0000
committerPaul B Mahol <onemda@gmail.com>2013-08-26 19:26:00 +0000
commit6638738968bade064a6a615263d131dfe4f54504 (patch)
tree0ab58f9036b76497625c966778380886409f2ec0 /libavcodec/msrledec.c
parentf12c27daf7c6faed8b1e5c70e5fa9738737f5567 (diff)
msrledec: use bytestream2_get_bufferu()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/msrledec.c')
-rw-r--r--libavcodec/msrledec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/msrledec.c b/libavcodec/msrledec.c
index 83d7d134b1..06777d7fd4 100644
--- a/libavcodec/msrledec.c
+++ b/libavcodec/msrledec.c
@@ -184,9 +184,9 @@ static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic,
}
if ((depth == 8) || (depth == 24)) {
- for(i = 0; i < p2 * (depth >> 3); i++) {
- *output++ = bytestream2_get_byteu(gb);
- }
+ bytestream2_get_bufferu(gb, output, p2 * (depth >> 3));
+ output += p2 * (depth >> 3);
+
// RLE8 copy is actually padded - and runs are not!
if(depth == 8 && (p2 & 1)) {
bytestream2_skip(gb, 1);