diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-08-16 13:29:34 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-08-16 13:37:53 +0200 |
commit | 16efcfe4138f9e60e01e3d477fd5c2721e060ee0 (patch) | |
tree | 74fca0cfb1c55d7dc0228e5f01aee7636aa935ea /libavfilter/vf_weave.c | |
parent | 7b19e76aeb0ace57b99aaef156bbfe592e43e65e (diff) |
avfilter/vf_weave: fix top vs bottom field order
Fixes #6590.
Diffstat (limited to 'libavfilter/vf_weave.c')
-rw-r--r-- | libavfilter/vf_weave.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_weave.c b/libavfilter/vf_weave.c index 6d3dd7c299..037f5d1cf2 100644 --- a/libavfilter/vf_weave.c +++ b/libavfilter/vf_weave.c @@ -100,20 +100,20 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) for (i = 0; i < s->nb_planes; i++) { if (s->double_weave && !(inlink->frame_count_out & 1)) { - av_image_copy_plane(out->data[i] + out->linesize[i] * !s->first_field, + av_image_copy_plane(out->data[i] + out->linesize[i] * s->first_field, out->linesize[i] * 2, in->data[i], in->linesize[i], s->linesize[i], s->planeheight[i]); - av_image_copy_plane(out->data[i] + out->linesize[i] * s->first_field, + av_image_copy_plane(out->data[i] + out->linesize[i] * !s->first_field, out->linesize[i] * 2, s->prev->data[i], s->prev->linesize[i], s->linesize[i], s->planeheight[i]); } else { - av_image_copy_plane(out->data[i] + out->linesize[i] * s->first_field, + av_image_copy_plane(out->data[i] + out->linesize[i] * !s->first_field, out->linesize[i] * 2, in->data[i], in->linesize[i], s->linesize[i], s->planeheight[i]); - av_image_copy_plane(out->data[i] + out->linesize[i] * !s->first_field, + av_image_copy_plane(out->data[i] + out->linesize[i] * s->first_field, out->linesize[i] * 2, s->prev->data[i], s->prev->linesize[i], s->linesize[i], s->planeheight[i]); |