diff options
author | Ronald Bultje <rsbultje@gmail.com> | 2012-03-31 17:10:54 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-11 16:30:41 -0400 |
commit | 992f71e95dcf57c917531f126ba7499ef9ed87d3 (patch) | |
tree | 86b87901df13fd4a3df9eb668079e92653c4f28e /libavcodec/msrle.c | |
parent | 729f90e26802057f06905ab15a34612168eeac80 (diff) | |
download | ffmpeg-992f71e95dcf57c917531f126ba7499ef9ed87d3.tar.gz |
msrle: convert MS RLE decoding function to bytestream2.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Diffstat (limited to 'libavcodec/msrle.c')
-rw-r--r-- | libavcodec/msrle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c index 0c8d3d79f8..06e9b494be 100644 --- a/libavcodec/msrle.c +++ b/libavcodec/msrle.c @@ -40,6 +40,7 @@ typedef struct MsrleContext { AVCodecContext *avctx; AVFrame frame; + GetByteContext gb; const unsigned char *buf; int size; @@ -123,7 +124,8 @@ static int msrle_decode_frame(AVCodecContext *avctx, ptr += s->frame.linesize[0]; } } else { - ff_msrle_decode(avctx, (AVPicture*)&s->frame, avctx->bits_per_coded_sample, buf, buf_size); + bytestream2_init(&s->gb, buf, buf_size); + ff_msrle_decode(avctx, (AVPicture*)&s->frame, avctx->bits_per_coded_sample, &s->gb); } *data_size = sizeof(AVFrame); |