summaryrefslogtreecommitdiff
path: root/libavcodec/dnxhddec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-01-31 14:23:48 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-01-31 14:23:48 +0000
commitbb41f2e774119bc8604299eefd5481bb66a3be77 (patch)
tree287e8d4d868b0e8d2d9ecfaeae9bc898e08c9d5a /libavcodec/dnxhddec.c
parent3485b9cdda2274b2a554b2f0d24db09a20bcb54b (diff)
fix field order export
Originally committed as revision 11695 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dnxhddec.c')
-rw-r--r--libavcodec/dnxhddec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 64184de3a9..9d39592370 100644
--- a/libavcodec/dnxhddec.c
+++ b/libavcodec/dnxhddec.c
@@ -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);
}