From: Michael Smith <[email protected]> Set interlaced to false if we don't have an interlaced frame ---
I still have to figure out how to produce such file, and why the picture fields aren't reset. See https://bugzilla.libav.org/show_bug.cgi?id=382 libavcodec/proresdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c index f7e32c9..4b196f6 100644 --- a/libavcodec/proresdec.c +++ b/libavcodec/proresdec.c @@ -164,6 +164,8 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, if (ctx->frame_type) { /* if interlaced */ ctx->picture.interlaced_frame = 1; ctx->picture.top_field_first = ctx->frame_type & 1; + } else { + ctx->picture.interlaced_frame = 0; } avctx->color_primaries = buf[14]; -- 1.8.0.2 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
