diff options
author | Alexander Strange <astrange@ithinksw.com> | 2008-05-11 20:26:35 +0000 |
---|---|---|
committer | Alexander Strange <astrange@ithinksw.com> | 2008-05-11 20:26:35 +0000 |
commit | 488aca9b1e2eb9136b77e00335b2f529cbb248d2 (patch) | |
tree | 319b36d9639a606e1aaf0315e79568cf8dccf50f /libavcodec/svq3.c | |
parent | e6303192c7c957724f1d2bb26a528869980b58c0 (diff) | |
download | ffmpeg-streaming-488aca9b1e2eb9136b77e00335b2f529cbb248d2.zip ffmpeg-streaming-488aca9b1e2eb9136b77e00335b2f529cbb248d2.tar.gz |
Set and use h->mb_xy in SVQ3 too.
Originally committed as revision 13129 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r-- | libavcodec/svq3.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index bb2e8eb..ac16cd8 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -411,7 +411,7 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) { uint32_t vlc; int8_t *top, *left; MpegEncContext *const s = (MpegEncContext *) h; - const int mb_xy = s->mb_x + s->mb_y*s->mb_stride; + const int mb_xy = h->mb_xy; const int b_xy = 4*s->mb_x + 4*s->mb_y*h->b_stride; h->top_samples_available = (s->mb_y == 0) ? 0x33FF : 0xFFFF; @@ -681,9 +681,11 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) { static int svq3_decode_slice_header (H264Context *h) { MpegEncContext *const s = (MpegEncContext *) h; - const int mb_xy = s->mb_x + s->mb_y*s->mb_stride; + int mb_xy; int i, header; + mb_xy = h->mb_xy = s->mb_x + s->mb_y*s->mb_stride; + header = get_bits (&s->gb, 8); if (((header & 0x9F) != 1 && (header & 0x9F) != 2) || (header & 0x60) == 0) { |