diff options
author | Joakim Plate <elupus@ecce.se> | 2011-07-14 22:31:37 +0200 |
---|---|---|
committer | Joakim Plate <elupus@ecce.se> | 2011-07-28 03:47:53 +0200 |
commit | faa338183ba44051e05019411956b41c257c2510 (patch) | |
tree | 323d65a274c087cd8878b9e9026a9da7d167c893 | |
parent | f234cd0f37311454de996c35837e8e6698fabcbd (diff) | |
download | ffmpeg-faa338183ba44051e05019411956b41c257c2510.tar.gz |
yadif must copy buffer properties like aspect for second frame as well
-rw-r--r-- | libavfilter/vf_yadif.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index 56e4489986..6fc9f479e7 100644 --- a/libavfilter/vf_yadif.c +++ b/libavfilter/vf_yadif.c @@ -201,9 +201,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]; |