ffmpeg: make reading packets from thread blocking.
authorNicolas George <george@nsup.org>
Fri, 25 Oct 2013 08:58:14 +0000 (10:58 +0200)
committerNicolas George <george@nsup.org>
Thu, 20 Feb 2014 10:22:55 +0000 (11:22 +0100)
commit299a56879d2d790ac0c40d09af18e7f03471de9e
treed272a3952d09c79b85b24f0fc11de99ffd50a1a6
parent3edc3b159503d512c919b3d5902f7026e961823a
ffmpeg: make reading packets from thread blocking.

If a packet is not ready on the input selected by ffmpeg,
it will read from another input instead. If that happens
repeatedly, frames will accumulate somewhere later in the
processing to ensure streams synchronization. It can happen
in particular when reading from a slow medium or an
expensive lavfi filter graph.

Make reading from normal demuxers on non-streamed data and
from the lavfi pseudo-device blocking to avoid that.

Should fix trac ticket #3079.
ffmpeg.c
ffmpeg.h