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/h263dec.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/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 2af76199ab..8bbd3a7580 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -79,7 +79,6 @@ static int h263_decode_frame(AVCodecContext *avctx, { MpegEncContext *s = avctx->priv_data; int ret; - DCTELEM block[6][64]; AVPicture *pict = data; #ifdef DEBUG @@ -131,17 +130,17 @@ static int h263_decode_frame(AVCodecContext *avctx, s->c_dc_scale = 8; } - memset(block, 0, sizeof(block)); + memset(s->block, 0, sizeof(s->block)); s->mv_dir = MV_DIR_FORWARD; s->mv_type = MV_TYPE_16X16; if (s->h263_msmpeg4) { - if (msmpeg4_decode_mb(s, block) < 0) + if (msmpeg4_decode_mb(s, s->block) < 0) return -1; } else { - if (h263_decode_mb(s, block) < 0) + if (h263_decode_mb(s, s->block) < 0) return -1; } - MPV_decode_mb(s, block); + MPV_decode_mb(s, s->block); } } |