[FFmpeg-devel] [PATCH] libavfilter-soc: Make overlay handle still images

Martin Storsjö martin
Wed May 6 13:56:34 CEST 2009


Currently, the overlay filter can't properly handle the case when one 
input is a still image. The filter logic determines that the still image 
input is the one currently being behind and just tries to get a new frame 
from that input, without actually getting any frame with a pts higher than 
the one from the running video.

The attached patch is an initial attempt at fixing this: If the filter 
receives a new frame with the same pts as the previous one, it marks that 
input as having reached eof and doesn't try to read any more data from 
that input.

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libavfilter-soc-overlay-eof.patch
Type: text/x-diff
Size: 1455 bytes
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090506/8849be27/attachment.patch>

More information about the ffmpeg-devel mailing list