Commit 8a90148d authored by Paul B Mahol's avatar Paul B Mahol Committed by Michael Niedermayer

smc: use bytestream2_size()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0ee5be4e
......@@ -83,7 +83,7 @@ static void smc_decode_stream(SmcContext *s)
int stride = s->frame.linesize[0];
int i;
int chunk_size;
int buf_size = (int) (s->gb.buffer_end - s->gb.buffer_start);
int buf_size = bytestream2_size(&s->gb);
unsigned char opcode;
int n_blocks;
unsigned int color_flags;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment