---
 libavcodec/ffv1dec.c |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index 8f7b2bf..e79b06b 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -316,15 +316,13 @@ static int decode_slice_header(FFV1Context *f, 
FFV1Context *fs)
     }
 
     ps = get_symbol(c, state, 0);
-    if (ps == 1) {
-        f->cur->interlaced_frame = 1;
-        f->cur->top_field_first  = 1;
-    } else if (ps == 2) {
-        f->cur->interlaced_frame = 1;
-        f->cur->top_field_first  = 0;
-    } else if (ps == 3) {
-        f->cur->interlaced_frame = 0;
-    }
+    if (ps == 1)
+        f->cur->field_state = AV_FRAME_INTERLACED_TFF;
+    else if (ps == 2)
+        f->cur->field_state = AV_FRAME_INTERLACED_BFF;
+    else if (ps == 3)
+        f->cur->field_state = AV_FRAME_PROGRESSIVE;
+
     f->cur->sample_aspect_ratio.num = get_symbol(c, state, 0);
     f->cur->sample_aspect_ratio.den = get_symbol(c, state, 0);
 
-- 
1.7.9.5

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

Reply via email to