From c14b0b5e14f98643c71b62aae9f4ce9d85d74192 Mon Sep 17 00:00:00 2001 From: Ilkka Ollakka Date: Sat, 6 Oct 2012 14:04:26 +0300 Subject: [PATCH] avformat: if we use dummy access, let avformat write to dst itself, usable for example smootstreaming output --- 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 9ce5af0d69..bebe5838d5 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 */ -- 2.39.2