Browse Source

fix field order export

Originally committed as revision 11695 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 18 years ago
parent
commit
bb41f2e774
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/dnxhddec.c

+ 1
- 1
libavcodec/dnxhddec.c View File

@@ -99,7 +99,7 @@ static int dnxhd_decode_header(DNXHDContext *ctx, uint8_t *buf, int buf_size, in
if (buf[5] & 2) { /* interlaced */
ctx->cur_field = buf[5] & 1;
ctx->picture.interlaced_frame = 1;
ctx->picture.top_field_first = first_field && ctx->cur_field == 1;
ctx->picture.top_field_first = first_field ^ ctx->cur_field;
av_log(ctx->avctx, AV_LOG_DEBUG, "interlaced %d, cur field %d\n", buf[5] & 3, ctx->cur_field);
}



Loading…
Cancel
Save