This commit also correctly marks the orthogonal interlace mode of utvideo
which does not correspond to bff or tff interlacing.
---
 libavcodec/utvideodec.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c
index 3492595..198f380 100644
--- a/libavcodec/utvideodec.c
+++ b/libavcodec/utvideodec.c
@@ -459,7 +459,11 @@ static int decode_frame(AVCodecContext *avctx, void *data, 
int *got_frame,
 
     frame.f->key_frame = 1;
     frame.f->pict_type = AV_PICTURE_TYPE_I;
-    frame.f->interlaced_frame = !!c->interlaced;
+    if (c->interlaced)
+        // fields are coded ortogonally
+        frame.f->field_state = AV_FRAME_INTERLACED;
+    else
+        frame.f->field_state = AV_FRAME_PROGRESSIVE;
 
     *got_frame = 1;
 
-- 
1.7.9.5

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

Reply via email to