[FFmpeg-cvslog] msrledec: use bytestream2_get_bufferu()
Paul B Mahol
git at videolan.org
Mon Aug 26 21:26:53 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Aug 26 15:37:13 2013 +0000| [6638738968bade064a6a615263d131dfe4f54504] | committer: Paul B Mahol
msrledec: use bytestream2_get_bufferu()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6638738968bade064a6a615263d131dfe4f54504
---
libavcodec/msrledec.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/msrledec.c b/libavcodec/msrledec.c
index 83d7d13..06777d7 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);
More information about the ffmpeg-cvslog
mailing list