This is necessary to compile with libav.git HEAD or with contribs. Streaming output still needs fixing.