summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-24 04:52:58 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-24 04:55:13 +0200
commit22ce78a95efb5d67dcd925285ad8c836b67d2c19 (patch)
tree4f21ab992243f1e21ecdfca60f406560a6ebf433 /libavcodec/vc1dec.c
parent697edcc12a0ab645f66378cee9549b80a40fe59c (diff)
vc1dec: dont apply the loop filter on fields
Fixes read of uninitialized memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 3debe52307..d448a8a4c8 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -4654,7 +4654,7 @@ static void vc1_decode_p_blocks(VC1Context *v)
if (s->mb_y != s->start_mb_y) ff_draw_horiz_band(s, (s->mb_y - 1) * 16, 16);
s->first_slice_line = 0;
}
- if (apply_loop_filter) {
+ if (apply_loop_filter && v->fcm == PROGRESSIVE) {
s->mb_x = 0;
ff_init_block_index(s);
for (; s->mb_x < s->mb_width; s->mb_x++) {