Revision 4b3d0dc6

View differences:

libavfilter/vf_crop.c
240 240
    picref->video->w = crop->w;
241 241
    picref->video->h = crop->h;
242 242

  
243
    /* FIXME: when the TB will be settable */
244
    crop->var_values[VAR_T]   = picref->pts == AV_NOPTS_VALUE ? NAN : (double)picref->pts / AV_TIME_BASE;
243
    crop->var_values[VAR_T] = picref->pts == AV_NOPTS_VALUE ?
244
        NAN : picref->pts * av_q2d(link->time_base);
245 245
    crop->var_values[VAR_POS] = picref->pos == -1 ? NAN : picref->pos;
246 246
    crop->var_values[VAR_X] = av_eval_expr(crop->x_pexpr, crop->var_values, NULL);
247 247
    crop->var_values[VAR_Y] = av_eval_expr(crop->y_pexpr, crop->var_values, NULL);

Also available in: Unified diff