# HG changeset patch # User reimar # Date 1378238729 0 # Node ID 1251f8aa5785cac1f51a8cb29ce51622d8051428 # Parent 57a21cd090a1d3b93601cbb34ce96581fabacbd9 muxer_lavf: partially support formats creating files own their own. This works with e.g. image2, but is a bit messy since using img%d.png results in mencoder itself creating a file with exactly this name while lavf creates the correctly numbered ones. diff -r 57a21cd090a1 -r 1251f8aa5785 libmpdemux/muxer_lavf.c --- a/libmpdemux/muxer_lavf.c Tue Sep 03 20:05:28 2013 +0000 +++ b/libmpdemux/muxer_lavf.c Tue Sep 03 20:05:29 2013 +0000 @@ -364,6 +364,8 @@ 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)); priv->oc->oformat = fmt;