]> git.sesse.net Git - vlc/commitdiff
avformat: if we use dummy access, let avformat write to dst itself, usable for exampl...
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 6 Oct 2012 11:04:26 +0000 (14:04 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Mon, 8 Oct 2012 14:55:15 +0000 (17:55 +0300)
modules/demux/avformat/mux.c

index 9ce5af0d694d7dd37ce487c1e55cd40922c22a46..bebe5838d5cf60f581813fc0a8ebd26d54260a98 100644 (file)
@@ -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 */