[vlc-devel] [PATCH 3/3] avformat: if we use dummy access, let avformat write to dst itself, usable for example smootstreaming output
Ilkka Ollakka
ileoo at videolan.org
Sat Oct 6 13:15:08 CEST 2012
---
modules/demux/avformat/mux.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 31e8739..2ee27f3 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -133,6 +133,9 @@ int OpenMux( vlc_object_t *p_this )
p_sys->oc = avformat_alloc_context();
p_sys->oc->oformat = file_oformat;
+ /* If we use dummy access, let avformat write output */
+ if( !strcmp( p_mux->p_access->psz_access, "dummy") )
+ strcpy( p_sys->oc->filename, p_mux->p_access->psz_path );
/* Create I/O wrapper */
p_sys->io_buffer_size = 32768; /* FIXME */
--
1.7.12.1
More information about the vlc-devel
mailing list