[FFmpeg-devel] [PATCH] ffmpeg_opt: Do not overwrite output if there is no input
Michael Niedermayer
michaelni at gmx.at
Fri Mar 27 11:42:46 CET 2015
On Fri, Mar 27, 2015 at 08:08:45AM +0100, Nicolas George wrote:
> Le septidi 7 germinal, an CCXXIII, Michael Niedermayer a écrit :
> > + if (!(oc->oformat->flags & AVFMT_NOSTREAMS) && !input_stream_potentially_available) {
> > + av_log(NULL, AV_LOG_ERROR,
> > + "No input streams but output needs an input stream\n");
> > + exit_program(1);
> > + }
>
> Was this tested with input coming only from a filter graph (ffmpeg -lavfi
> testsrc output.nut)?
yes, theres a test that does this in fate
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150327/398837e2/attachment.asc>
More information about the ffmpeg-devel
mailing list