[FFmpeg-devel] [PATCH] ffmpeg: compute filtered frame pts after filling frame from buffer

Matthieu Bouron matthieu.bouron at gmail.com
Mon May 14 16:00:04 CEST 2012

On Mon, May 14, 2012 at 03:32:03PM +0200, Matthieu Bouron wrote:
> Hi,
> This patch move the filter frame pts computation after filling frame from
> buffer in poll_filters function.
> This fixes some weird behaviour with overlay filter; got some constant
> frame duplication in do_video_out since the frame pts are wrong:
>   ffmpeg -i input -vf "movie=input[v1];[in][v2]overlay" output
> Anyway no problem using the split filter with same input,
>   ffmpeg -i input -vf "[in]split[v1][v2];[v1][v2]overlay" output

New patch attached, i didn't notice that a check was performed on
filtered_frame pts before do_video_out is called.

For reference, the pts copy in avfilter_fill_frame_from_video_buffer_ref
was introduced by a80217a5eec821fa9027eaf59ace95187843d320.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ffmpeg-affect-computed-filtered-frame-pts-after-fill.patch
Type: text/x-diff
Size: 1622 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120514/eea99afd/attachment.bin>

More information about the ffmpeg-devel mailing list