On Mon, 25 Nov 2013, Luca Barbato wrote:

From: Kostya Shishkov <[email protected]>

There are samples in the wild with B-frames and P-frames with different
interlace mode.

CC: [email protected]
Reported-by: Jean-Baptiste Kempf <[email protected]>
Signed-off-by: Luca Barbato <[email protected]>
---

Since Kostya doesn't have internet I'm forwarding it.

libavcodec/vc1.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index d6586bf..b701817 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -1005,6 +1005,8 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, 
GetBitContext* gb)
                v->reffield          = get_bits1(gb);
                v->ref_field_type[0] = v->reffield ^ !v->cur_field_type;
            }
+        } else {
+            v->numref = 0;
        }
        if (v->extended_mv)
            v->mvrange = get_unary(gb, 0, 3);
--
1.8.3.2

Sounds and looks good to me.

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

Reply via email to