[FFmpeg-cvslog] r25197 - trunk/libavfilter/vf_yadif.c

michael subversion
Sat Sep 25 18:54:09 CEST 2010


Author: michael
Date: Sat Sep 25 18:54:09 2010
New Revision: 25197

Log:
Fix 0 vs 1 porting bug from mplayer.

Modified:
   trunk/libavfilter/vf_yadif.c

Modified: trunk/libavfilter/vf_yadif.c
==============================================================================
--- trunk/libavfilter/vf_yadif.c	Sat Sep 25 18:43:42 2010	(r25196)
+++ trunk/libavfilter/vf_yadif.c	Sat Sep 25 18:54:09 2010	(r25197)
@@ -167,7 +167,7 @@ static AVFilterBufferRef *get_video_buff
 static void return_frame(AVFilterContext *ctx, int is_second){
     YADIFContext *yadif = ctx->priv;
     AVFilterLink *link= ctx->outputs[0];
-    int tff = yadif->parity == -1 ? yadif->cur->video->top_field_first : yadif->parity;
+    int tff = yadif->parity == -1 ? yadif->cur->video->top_field_first : (yadif->parity^1);
 
     if(is_second)
         yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |



More information about the ffmpeg-cvslog mailing list