[MPlayer-cvslog] r36442 - trunk/libmpdemux/muxer_lavf.c
reimar
subversion at mplayerhq.hu
Tue Sep 3 22:36:41 CEST 2013
Author: reimar
Date: Tue Sep 3 22:36:41 2013
New Revision: 36442
Log:
Support ffmpeg://dummy:// in muxer_lavf.
Modified:
trunk/libmpdemux/muxer_lavf.c
Modified: trunk/libmpdemux/muxer_lavf.c
==============================================================================
--- trunk/libmpdemux/muxer_lavf.c Tue Sep 3 22:28:25 2013 (r36441)
+++ trunk/libmpdemux/muxer_lavf.c Tue Sep 3 22:36:41 2013 (r36442)
@@ -364,8 +364,12 @@ int muxer_init_muxer_lavf(muxer_t *muxer
mp_msg(MSGT_MUXER, MSGL_FATAL, "Cannot get specified format.\n");
goto fail;
}
- if (fmt->flags & AVFMT_NOFILE)
- av_strlcpy(priv->oc->filename, out_filename, sizeof(priv->oc->filename));
+ if (fmt->flags & AVFMT_NOFILE) {
+ const char *src = out_filename;
+ if (!strncmp(out_filename, "ffmpeg://dummy://", 17)) src += 17;
+ else if (!strncmp(out_filename, "ffmpeg://", 9)) src += 9;
+ av_strlcpy(priv->oc->filename, src, sizeof(priv->oc->filename));
+ }
priv->oc->oformat = fmt;
More information about the MPlayer-cvslog
mailing list