diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2001-07-30 23:24:58 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2001-07-30 23:24:58 +0000 |
commit | b7ec19d39e8a881e973523bce1704dfd3a0470e6 (patch) | |
tree | c534c5cf23ba8ebe0b2a8ea1b3afa064f3e03199 /libavcodec/mpeg12.c | |
parent | caa6348e96fc4f2b3d71da96b194592699b222f1 (diff) | |
download | ffmpeg-b7ec19d39e8a881e973523bce1704dfd3a0470e6.tar.gz |
use block[] in structure to have it aligned on 8 bytes for mmx optimizations
Originally committed as revision 21 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index e9e1e27e1a..326f043863 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1260,7 +1260,6 @@ static int mpeg_decode_slice(AVCodecContext *avctx, Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int ret; - DCTELEM block[6][64]; start_code = (start_code - 1) & 0xff; if (start_code >= s->mb_height) @@ -1288,14 +1287,14 @@ static int mpeg_decode_slice(AVCodecContext *avctx, } for(;;) { - memset(block, 0, sizeof(block)); - ret = mpeg_decode_mb(s, block); + memset(s->block, 0, sizeof(s->block)); + ret = mpeg_decode_mb(s, s->block); dprintf("ret=%d\n", ret); if (ret < 0) return -1; if (ret == 1) break; - MPV_decode_mb(s, block); + MPV_decode_mb(s, s->block); } /* end of slice reached */ |