aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/smc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-21 00:10:19 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-03-21 03:07:43 +0100
commit8a90148dfea9ae2adabaa407eb437d7c14f4aed6 (patch)
tree34ef3567039393563eafb900eec966096587a19b /libavcodec/smc.c
parent0ee5be4ee480c59d5f0e384566992795a5bb7ff8 (diff)
downloadffmpeg-8a90148dfea9ae2adabaa407eb437d7c14f4aed6.tar.gz
smc: use bytestream2_size()
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/smc.c')
-rw-r--r--libavcodec/smc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/smc.c b/libavcodec/smc.c
index 3cd5e53f5f..71d85f030a 100644
--- a/libavcodec/smc.c
+++ b/libavcodec/smc.c
@@ -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;