mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
vf_crop: Replace #ifdef DEBUG + av_log() by av_dlog().
This commit is contained in:
parent
798b264678
commit
2146f4928a
@ -264,11 +264,9 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
|
|||||||
crop->x &= ~((1 << crop->hsub) - 1);
|
crop->x &= ~((1 << crop->hsub) - 1);
|
||||||
crop->y &= ~((1 << crop->vsub) - 1);
|
crop->y &= ~((1 << crop->vsub) - 1);
|
||||||
|
|
||||||
#ifdef DEBUG
|
av_dlog(ctx, "n:%d t:%f x:%d y:%d x+w:%d y+h:%d\n",
|
||||||
av_log(ctx, AV_LOG_DEBUG,
|
(int)crop->var_values[VAR_N], crop->var_values[VAR_T], crop->x,
|
||||||
"n:%d t:%f x:%d y:%d x+w:%d y+h:%d\n",
|
crop->y, crop->x+crop->w, crop->y+crop->h);
|
||||||
(int)crop->var_values[VAR_N], crop->var_values[VAR_T], crop->x, crop->y, crop->x+crop->w, crop->y+crop->h);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ref2->data[0] += crop->y * ref2->linesize[0];
|
ref2->data[0] += crop->y * ref2->linesize[0];
|
||||||
ref2->data[0] += crop->x * crop->max_step[0];
|
ref2->data[0] += crop->x * crop->max_step[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user