[FFmpeg-cvslog] r25645 - trunk/libavfilter/vf_crop.c
stefano
subversion
Tue Nov 2 19:40:55 CET 2010
Author: stefano
Date: Tue Nov 2 19:40:55 2010
New Revision: 25645
Log:
Fix crop->var_values[VAR_T] computation in the crop filter.
Modified:
trunk/libavfilter/vf_crop.c
Modified: trunk/libavfilter/vf_crop.c
==============================================================================
--- trunk/libavfilter/vf_crop.c Tue Nov 2 09:33:10 2010 (r25644)
+++ trunk/libavfilter/vf_crop.c Tue Nov 2 19:40:55 2010 (r25645)
@@ -240,8 +240,8 @@ static void start_frame(AVFilterLink *li
picref->video->w = crop->w;
picref->video->h = crop->h;
- /* FIXME: when the TB will be settable */
- crop->var_values[VAR_T] = picref->pts == AV_NOPTS_VALUE ? NAN : (double)picref->pts / AV_TIME_BASE;
+ crop->var_values[VAR_T] = picref->pts == AV_NOPTS_VALUE ?
+ NAN : picref->pts * av_q2d(link->time_base);
crop->var_values[VAR_POS] = picref->pos == -1 ? NAN : picref->pos;
crop->var_values[VAR_X] = av_eval_expr(crop->x_pexpr, crop->var_values, NULL);
crop->var_values[VAR_Y] = av_eval_expr(crop->y_pexpr, crop->var_values, NULL);
More information about the ffmpeg-cvslog
mailing list