lavfi/blackdetect: add logic for handling stream termination
authorStefano Sabatini <stefasab@gmail.com>
Wed, 20 Jun 2012 23:15:52 +0000 (01:15 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 21 Jun 2012 09:11:50 +0000 (11:11 +0200)
commiteda4500866b461e0eb30a2fb4ba156509edc641d
tree6180352d1878009e9d6fddaafb938fda9b3db521
parent5bc87f1cd63a63956cee7308f425a8d85adf5c38
lavfi/blackdetect: add logic for handling stream termination

Add request_frame() which checks the black duration when the end of the
stream is signalled. Allow to detect black video segments at the end of
the stream.

Note that the reported last black video segment duration is not very
accurate, since we still miss the duration information in the video
buffer.

Address trac ticket #1470.
libavfilter/vf_blackdetect.c