From: Michael Niedermayer <[email protected]>

No sample tried shows a difference.

---
Ok'd by Mashiat in a comment on github:
https://github.com/mstorsjo/libav/commit/3fc93af76d4c7f5da7980df9d3b8dbd4baddf14e#commitcomment-3211932
---
 libavcodec/vc1dec.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index f56f074..a3b6031 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -380,7 +380,7 @@ static void vc1_mc_1mv(VC1Context *v, int dir)
         uvmy = uvmy + ((uvmy < 0) ? (uvmy & 1) : -(uvmy & 1));
     }
     if (!dir) {
-        if (v->field_mode && (v->cur_field_type != v->ref_field_type[dir]) && 
v->cur_field_type) {
+        if (v->field_mode && (v->cur_field_type != v->ref_field_type[dir]) && 
v->second_field) {
             srcY = s->current_picture.f.data[0];
             srcU = s->current_picture.f.data[1];
             srcV = s->current_picture.f.data[2];
@@ -554,7 +554,7 @@ static void vc1_mc_4mv_luma(VC1Context *v, int n, int dir)
     my = s->mv[dir][n][1];
 
     if (!dir) {
-        if (v->field_mode && (v->cur_field_type != v->ref_field_type[dir]) && 
v->cur_field_type) {
+        if (v->field_mode && (v->cur_field_type != v->ref_field_type[dir]) && 
v->second_field) {
             srcY = s->current_picture.f.data[0];
         } else
             srcY = s->last_picture.f.data[0];
@@ -829,7 +829,7 @@ static void vc1_mc_4mv_chroma(VC1Context *v, int dir)
     }
 
     if (!dir) {
-        if (v->field_mode && (v->cur_field_type != chroma_ref_type) && 
v->cur_field_type) {
+        if (v->field_mode && (v->cur_field_type != chroma_ref_type) && 
v->second_field) {
             srcU = s->current_picture.f.data[1];
             srcV = s->current_picture.f.data[2];
         } else {
-- 
1.7.9.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to