changeset 6212:0b967440e270 libavcodec

fix field order export
author bcoudurier
date Thu, 31 Jan 2008 14:23:48 +0000
parents ed359f380aa7
children b26ccd688817
files dnxhddec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dnxhddec.c	Thu Jan 31 14:01:33 2008 +0000
+++ b/dnxhddec.c	Thu Jan 31 14:23:48 2008 +0000
@@ -99,7 +99,7 @@
     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);
     }