[FFmpeg-devel] [PATCH] yadif does not copy video props
Michael Niedermayer
michaelni
Mon Oct 4 12:45:42 CEST 2010
On Sun, Oct 03, 2010 at 08:56:33PM -0700, Baptiste Coudurier wrote:
> Hi,
>
> $subject.
>
> Copy video props and unset interlaced :)
>
> --
> Baptiste COUDURIER
> Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
> FFmpeg maintainer http://www.ffmpeg.org
> vf_yadif.c | 2 ++
> 1 file changed, 2 insertions(+)
> 9e59687e1e0c65aab1fa4b25b861a64de82e4c97 yadif_video_props.patch
> Index: libavfilter/vf_yadif.c
> ===================================================================
> --- libavfilter/vf_yadif.c (revision 25329)
> +++ libavfilter/vf_yadif.c (working copy)
> @@ -177,6 +177,8 @@
>
> if (is_second)
> avfilter_start_frame(ctx->outputs[0], yadif->out);
> + avfilter_copy_buffer_ref_props(yadif->out, yadif->cur);
> + yadif->out->video->interlaced = 0;
> avfilter_draw_slice(ctx->outputs[0], 0, link->h, 1);
> avfilter_end_frame(ctx->outputs[0]);
>
this should remove yadif->out->pts = yadif->cur->pts;
and the second frame with field->frame mode should have its pts set to
unknown or interpolated
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101004/94703630/attachment.pgp>
More information about the ffmpeg-devel
mailing list