aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2011-07-14 22:31:37 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-21 08:59:36 +0200
commit5feb67f8a1a17a4dd3cec0aa80ef0dc543fc7673 (patch)
treef5888786886da2e97b830c3afb15510c7ac1c558
parent61f4387d390c22d52153daac230ab2bc68114721 (diff)
downloadffmpeg-5feb67f8a1a17a4dd3cec0aa80ef0dc543fc7673.tar.gz
vf_yadif: copy buffer properties like aspect for second frame as well
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavfilter/vf_yadif.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index aa5c434af9..2ba173970c 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -203,9 +203,12 @@ static void return_frame(AVFilterContext *ctx, int is_second)
tff = yadif->parity^1;
}
- if (is_second)
+ if (is_second) {
yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
AV_PERM_REUSE, link->w, link->h);
+ avfilter_copy_buffer_ref_props(yadif->out, yadif->cur);
+ yadif->out->video->interlaced = 0;
+ }
if (!yadif->csp)
yadif->csp = &av_pix_fmt_descriptors[link->format];