diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2008-08-19 16:00:26 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2008-08-19 16:00:26 +0000 |
commit | cb879ec2fb67248adf9ca4762f36836cea0a8b26 (patch) | |
tree | f8de1e24b8802e24c2b798c2b116c93e6c87a284 /libavcodec/dv.c | |
parent | 2c8d438893ac37d15921b89014f749907c6cb239 (diff) | |
download | ffmpeg-cb879ec2fb67248adf9ca4762f36836cea0a8b26.tar.gz |
Introducing DV_MAX_BPM macro instead of a hardcoded value for the
highest number of blocks per macroblock
Originally committed as revision 14840 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 30e0b1da55..816ccae269 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -360,8 +360,8 @@ static inline void dv_decode_video_segment(DVVideoContext *s, const uint8_t *buf_ptr; PutBitContext pb, vs_pb; GetBitContext gb; - BlockInfo mb_data[5 * 6], *mb, *mb1; - DECLARE_ALIGNED_16(DCTELEM, sblock[5*6][64]); + BlockInfo mb_data[5 * DV_MAX_BPM], *mb, *mb1; + DECLARE_ALIGNED_16(DCTELEM, sblock[5*DV_MAX_BPM][64]); DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */ DECLARE_ALIGNED_8(uint8_t, vs_bit_buffer[5 * 80 + 4]); /* allow some slack */ const int log2_blocksize= 3-s->avctx->lowres; |