[FFmpeg-cvslog] avfilter/codecview: reindent after previous commit
Clément Bœsch
git at videolan.org
Sat Dec 5 12:38:26 CET 2015
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Dec 5 12:25:14 2015 +0100| [3f46e7bad57c5ee5a582d0f5d9d8b9078ccdfe1b] | committer: Clément Bœsch
avfilter/codecview: reindent after previous commit
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f46e7bad57c5ee5a582d0f5d9d8b9078ccdfe1b
---
libavfilter/vf_codecview.c | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/libavfilter/vf_codecview.c b/libavfilter/vf_codecview.c
index ecf000c..086a56c 100644
--- a/libavfilter/vf_codecview.c
+++ b/libavfilter/vf_codecview.c
@@ -225,22 +225,22 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
}
if (s->mv) {
- AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_MOTION_VECTORS);
- if (sd) {
- int i;
- const AVMotionVector *mvs = (const AVMotionVector *)sd->data;
- for (i = 0; i < sd->size / sizeof(*mvs); i++) {
- const AVMotionVector *mv = &mvs[i];
- const int direction = mv->source > 0;
- 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 == 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,
- frame->width, frame->height, frame->linesize[0],
- 100, 0, mv->source > 0);
+ AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_MOTION_VECTORS);
+ if (sd) {
+ int i;
+ const AVMotionVector *mvs = (const AVMotionVector *)sd->data;
+ for (i = 0; i < sd->size / sizeof(*mvs); i++) {
+ const AVMotionVector *mv = &mvs[i];
+ const int direction = mv->source > 0;
+ 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 == 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,
+ frame->width, frame->height, frame->linesize[0],
+ 100, 0, mv->source > 0);
+ }
}
}
- }
return ff_filter_frame(outlink, frame);
}
More information about the ffmpeg-cvslog
mailing list