diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-07-09 03:00:57 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-07-09 03:00:57 +0000 |
commit | fdb5983285b06139219142dd57a37ffa20c9f3b5 (patch) | |
tree | 7eab72dbf9e482024d359a8a9576531da98964fe | |
parent | 5c4b8efd4b8aaa99f7752ab318ede8415f62762c (diff) | |
download | ffmpeg-fdb5983285b06139219142dd57a37ffa20c9f3b5.tar.gz |
Check if 4-MV MB should not be decoded.
Originally committed as revision 5688 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/vc1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index 2cd65ac812..f923d53ebe 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -2496,6 +2496,8 @@ static int vc1_decode_p_mb(VC1Context *v, DCTELEM block[6][64]) v->mb_type[0][s->block_index[i]] = is_intra[i]; if(!coded_inter) coded_inter = !is_intra[i] & is_coded[i]; } + // if there are no coded blocks then don't do anything more + if(!intra_count && !coded_inter) return 0; dst_idx = 0; GET_MQUANT(); s->current_picture.qscale_table[mb_pos] = mquant; |