Revision a51c71bb

View differences:

doc/filters.texi
996 996
@end table
997 997

  
998 998
Default value is -1.
999
If interlacing is unknown or decoder does not export this information,
1000
top field first will be assumed.
999 1001

  
1000 1002
@c man end VIDEO FILTERS
1001 1003

  
libavfilter/vf_yadif.c
167 167
{
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^1);
170
    int tff;
171

  
172
    if (yadif->parity == -1) {
173
        tff = yadif->cur->video->interlaced ?
174
            yadif->cur->video->top_field_first : 1;
175
    } else {
176
        tff = yadif->parity^1;
177
    }
171 178

  
172 179
    if (is_second)
173 180
        yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |

Also available in: Unified diff