avformat: mux: use the more accurate AVIODataMarkerType type to write headers
commit00fa9b1a5c4a2af66868346226f6cb86f731ff60
authorSteve Lhomme <robUx4@videolabs.io>
Thu, 4 Aug 2016 16:43:47 +0000 (4 18:43 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 8 Aug 2016 17:33:56 +0000 (8 19:33 +0200)
tree29287b5088f7cc86e45ee49ed93f145e40da18fc
parentf00d78110e125a794d5ac19117cb152c05cb7fcd
avformat: mux: use the more accurate AVIODataMarkerType type to write headers

In FFmpeg a call to avformat_write_header() then avio_flush() doesn't
necessarily write the data to the IO so our b_write_header detection never sees
anything.
We can rely on the new write system that tells what kind of data that is being
written.

This fixes multiple connections on the HTTP server when using the FFmpeg muxer.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/avformat/mux.c