changeset 3453:e3f5377bddb2 libavcodec

Check if 4-MV MB should not be decoded.
author kostya
date Sun, 09 Jul 2006 03:00:57 +0000
parents f024ca7c768b
children de0ed6497a13
files vc1.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Sun Jul 09 02:56:40 2006 +0000
+++ b/vc1.c	Sun Jul 09 03:00:57 2006 +0000
@@ -2496,6 +2496,8 @@
                 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;