aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aasc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-08 15:18:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-08 16:53:03 +0200
commite7117f1c1058d41eb759d1613e849c29b15c85b5 (patch)
tree6659dc2205247cfb05ddcedd031a522bf7c68d5d /libavcodec/aasc.c
parent541bfba85d544ff31dc6bc48977928f51c143d0f (diff)
downloadffmpeg-e7117f1c1058d41eb759d1613e849c29b15c85b5.tar.gz
aasc: use the correct reader offset
Fixes Ticket1232 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aasc.c')
-rw-r--r--libavcodec/aasc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aasc.c b/libavcodec/aasc.c
index c2758229b3..a136360572 100644
--- a/libavcodec/aasc.c
+++ b/libavcodec/aasc.c
@@ -82,7 +82,7 @@ static int aasc_decode_frame(AVCodecContext *avctx,
}
break;
case 1:
- bytestream2_init(&s->gb, buf - 4, buf_size + 4);
+ bytestream2_init(&s->gb, buf, buf_size);
ff_msrle_decode(avctx, (AVPicture*)&s->frame, 8, &s->gb);
break;
default: