Revision a51c71bb libavfilter/vf_yadif.c

View differences:

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