1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

smc: use bytestream2_size()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Paul B Mahol 2012-03-21 00:10:19 +00:00 committed by Michael Niedermayer
parent 0ee5be4ee4
commit 8a90148dfe

View File

@ -83,7 +83,7 @@ static void smc_decode_stream(SmcContext *s)
int stride = s->frame.linesize[0]; int stride = s->frame.linesize[0];
int i; int i;
int chunk_size; 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; unsigned char opcode;
int n_blocks; int n_blocks;
unsigned int color_flags; unsigned int color_flags;