[FFmpeg-devel] [PATCH 2/5] smc: use bytestream2_size()

Paul B Mahol onemda at gmail.com
Wed Mar 21 01:10:19 CET 2012


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/smc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/smc.c b/libavcodec/smc.c
index 3cd5e53..71d85f0 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;
-- 
1.7.7



More information about the ffmpeg-devel mailing list