lavf: make overlay_qsv work based on framesync
authorRuiling Song <ruiling.song@intel.com>
Tue, 3 Apr 2018 01:50:19 +0000 (09:50 +0800)
committerMark Thompson <sw@jkqxz.net>
Mon, 23 Apr 2018 21:56:06 +0000 (22:56 +0100)
commit58569162c280a0765b63441001d359e62824c9de
treee73a124e9728c2e767fc0758c679678b65c801db
parent6b2fee19a7ddeac220f851c368e4262205458166
lavf: make overlay_qsv work based on framesync

The existing version which was cherry-picked from Libav does not work
with FFmpeg framework, because ff_request_frame() was totally
different between Libav (recursive) and FFmpeg (non-recursive).
The existing overlay_qsv implementation depends on the recursive version
of ff_request_frame to trigger immediate call to request_frame() on input pad.
But this has been removed in FFmpeg since "lavfi: make request_frame() non-recursive."
Now that we have handy framesync support in FFmpeg, so I make it work
based on framesync. Some other fixing which is also needed to make
overlay_qsv work are put in a separate patch.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
(cherry picked from commit f3341a0452419c57faf4d28aebb24be5d41312f3)
libavfilter/Makefile
libavfilter/vf_overlay_qsv.c