[FFmpeg-cvslog] r11695 - trunk/libavcodec/dnxhddec.c

bcoudurier subversion
Thu Jan 31 15:23:49 CET 2008


Author: bcoudurier
Date: Thu Jan 31 15:23:48 2008
New Revision: 11695

Log:
fix field order export

Modified:
   trunk/libavcodec/dnxhddec.c

Modified: trunk/libavcodec/dnxhddec.c
==============================================================================
--- trunk/libavcodec/dnxhddec.c	(original)
+++ trunk/libavcodec/dnxhddec.c	Thu Jan 31 15:23:48 2008
@@ -99,7 +99,7 @@ static int dnxhd_decode_header(DNXHDCont
     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);
     }
 




More information about the ffmpeg-cvslog mailing list