vf_yadif: copy buffer properties like aspect for second frame as well
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
61f4387d39
commit
5feb67f8a1
@@ -203,9 +203,12 @@ static void return_frame(AVFilterContext *ctx, int is_second)
|
|||||||
tff = yadif->parity^1;
|
tff = yadif->parity^1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_second)
|
if (is_second) {
|
||||||
yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
|
yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
|
||||||
AV_PERM_REUSE, link->w, link->h);
|
AV_PERM_REUSE, link->w, link->h);
|
||||||
|
avfilter_copy_buffer_ref_props(yadif->out, yadif->cur);
|
||||||
|
yadif->out->video->interlaced = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!yadif->csp)
|
if (!yadif->csp)
|
||||||
yadif->csp = &av_pix_fmt_descriptors[link->format];
|
yadif->csp = &av_pix_fmt_descriptors[link->format];
|
||||||
|
|||||||
Reference in New Issue
Block a user