Mercurial > mplayer.hg
comparison libmpdemux/muxer_lavf.c @ 36344:1251f8aa5785
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.
author | reimar |
---|---|
date | Tue, 03 Sep 2013 20:05:29 +0000 |
parents | 8517826b0dbd |
children | 13e767d419fc |
comparison
equal
deleted
inserted
replaced
36343:57a21cd090a1 | 36344:1251f8aa5785 |
---|---|
362 if(! fmt) | 362 if(! fmt) |
363 { | 363 { |
364 mp_msg(MSGT_MUXER, MSGL_FATAL, "Cannot get specified format.\n"); | 364 mp_msg(MSGT_MUXER, MSGL_FATAL, "Cannot get specified format.\n"); |
365 goto fail; | 365 goto fail; |
366 } | 366 } |
367 if (fmt->flags & AVFMT_NOFILE) | |
368 av_strlcpy(priv->oc->filename, out_filename, sizeof(priv->oc->filename)); | |
367 priv->oc->oformat = fmt; | 369 priv->oc->oformat = fmt; |
368 | 370 |
369 | 371 |
370 priv->oc->packet_size= mux_packet_size; | 372 priv->oc->packet_size= mux_packet_size; |
371 priv->oc->max_delay= (int)(mux_max_delay*AV_TIME_BASE); | 373 priv->oc->max_delay= (int)(mux_max_delay*AV_TIME_BASE); |