Mercurial > libavcodec.hg
comparison dv.c @ 10856:d1ddb9a28c47 libavcodec
Align mb_bit_buffer and vs_bit_buffer as their alignment is checked by assert().
author | michael |
---|---|
date | Tue, 12 Jan 2010 13:54:35 +0000 |
parents | 03d02e21b432 |
children | 34a65026fa06 |
comparison
equal
deleted
inserted
replaced
10855:423410fc29b1 | 10856:d1ddb9a28c47 |
---|---|
531 const uint8_t *buf_ptr; | 531 const uint8_t *buf_ptr; |
532 PutBitContext pb, vs_pb; | 532 PutBitContext pb, vs_pb; |
533 GetBitContext gb; | 533 GetBitContext gb; |
534 BlockInfo mb_data[5 * DV_MAX_BPM], *mb, *mb1; | 534 BlockInfo mb_data[5 * DV_MAX_BPM], *mb, *mb1; |
535 DECLARE_ALIGNED_16(DCTELEM, sblock[5*DV_MAX_BPM][64]); | 535 DECLARE_ALIGNED_16(DCTELEM, sblock[5*DV_MAX_BPM][64]); |
536 uint8_t mb_bit_buffer[80 + 4]; /* allow some slack */ | 536 DECLARE_ALIGNED_16(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */ |
537 uint8_t vs_bit_buffer[5 * 80 + 4]; /* allow some slack */ | 537 DECLARE_ALIGNED_16(uint8_t, vs_bit_buffer[5 * 80 + 4]); /* allow some slack */ |
538 const int log2_blocksize = 3-s->avctx->lowres; | 538 const int log2_blocksize = 3-s->avctx->lowres; |
539 int is_field_mode[5]; | 539 int is_field_mode[5]; |
540 | 540 |
541 assert((((int)mb_bit_buffer) & 7) == 0); | 541 assert((((int)mb_bit_buffer) & 7) == 0); |
542 assert((((int)vs_bit_buffer) & 7) == 0); | 542 assert((((int)vs_bit_buffer) & 7) == 0); |