Skip to content
Snippets Groups Projects
Commit 77bd35d7 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/dnxhddec: reset cur_field for non interlaced frames

parent d3bd9431
No related branches found
No related tags found
No related merge requests found
...@@ -136,6 +136,8 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, ...@@ -136,6 +136,8 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
frame->top_field_first = first_field ^ ctx->cur_field; frame->top_field_first = first_field ^ ctx->cur_field;
av_log(ctx->avctx, AV_LOG_DEBUG, av_log(ctx->avctx, AV_LOG_DEBUG,
"interlaced %d, cur field %d\n", buf[5] & 3, ctx->cur_field); "interlaced %d, cur field %d\n", buf[5] & 3, ctx->cur_field);
} else {
ctx->cur_field = 0;
} }
ctx->height = AV_RB16(buf + 0x18); ctx->height = AV_RB16(buf + 0x18);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment