Originally committed as revision 25197 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -167,7 +167,7 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w, · 166 unmodified lines | ||
| 167 | 167 | static void return_frame(AVFilterContext *ctx, int is_second){ |
| 168 | 168 | YADIFContext *yadif = ctx->priv; |
| 169 | 169 | AVFilterLink *link= ctx->outputs[0]; |
| 170 | − int tff = yadif->parity == -1 ? yadif->cur->video->top_field_first : yadif->parity; | |
| 170 | + int tff = yadif->parity == -1 ? yadif->cur->video->top_field_first : (yadif->parity^1); | |
| 171 | 171 | |
| 172 | 172 | if(is_second) |
| 173 | 173 | yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE | |