mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/codecview: reindent after previous commit
This commit is contained in:
parent
560d1e7b49
commit
3f46e7bad5
|
@ -225,22 +225,22 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->mv) {
|
if (s->mv) {
|
||||||
AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_MOTION_VECTORS);
|
AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_MOTION_VECTORS);
|
||||||
if (sd) {
|
if (sd) {
|
||||||
int i;
|
int i;
|
||||||
const AVMotionVector *mvs = (const AVMotionVector *)sd->data;
|
const AVMotionVector *mvs = (const AVMotionVector *)sd->data;
|
||||||
for (i = 0; i < sd->size / sizeof(*mvs); i++) {
|
for (i = 0; i < sd->size / sizeof(*mvs); i++) {
|
||||||
const AVMotionVector *mv = &mvs[i];
|
const AVMotionVector *mv = &mvs[i];
|
||||||
const int direction = mv->source > 0;
|
const int direction = mv->source > 0;
|
||||||
if ((direction == 0 && (s->mv & MV_P_FOR) && frame->pict_type == AV_PICTURE_TYPE_P) ||
|
if ((direction == 0 && (s->mv & MV_P_FOR) && frame->pict_type == AV_PICTURE_TYPE_P) ||
|
||||||
(direction == 0 && (s->mv & MV_B_FOR) && frame->pict_type == AV_PICTURE_TYPE_B) ||
|
(direction == 0 && (s->mv & MV_B_FOR) && frame->pict_type == AV_PICTURE_TYPE_B) ||
|
||||||
(direction == 1 && (s->mv & MV_B_BACK) && frame->pict_type == AV_PICTURE_TYPE_B))
|
(direction == 1 && (s->mv & MV_B_BACK) && frame->pict_type == AV_PICTURE_TYPE_B))
|
||||||
draw_arrow(frame->data[0], mv->dst_x, mv->dst_y, mv->src_x, mv->src_y,
|
draw_arrow(frame->data[0], mv->dst_x, mv->dst_y, mv->src_x, mv->src_y,
|
||||||
frame->width, frame->height, frame->linesize[0],
|
frame->width, frame->height, frame->linesize[0],
|
||||||
100, 0, mv->source > 0);
|
100, 0, mv->source > 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return ff_filter_frame(outlink, frame);
|
return ff_filter_frame(outlink, frame);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue