[FFmpeg-devel] [PATCH 3/3] ffmpeg: properly close down muxers on av_interleaved_write_frame() failure

Michael Niedermayer michaelni at gmx.at
Wed Jan 15 18:02:43 CET 2014


On Tue, Jan 14, 2014 at 08:29:05PM +0100, Nicolas George wrote:
> Le quintidi 25 nivôse, an CCXXII, Michael Niedermayer a écrit :
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  ffmpeg.c |   17 ++++++++++++++---
> >  1 file changed, 14 insertions(+), 3 deletions(-)
> > 
> > diff --git a/ffmpeg.c b/ffmpeg.c
> > index 5831a78..228849f 100644
> > --- a/ffmpeg.c
> > +++ b/ffmpeg.c
> > @@ -313,6 +313,7 @@ void term_exit(void)
> >  
> >  static volatile int received_sigterm = 0;
> >  static volatile int received_nb_signals = 0;
> 
> > +static int main_return_code = 0;
> 
> I do not like that use of a global variable, but it makes the patch simpler.
> 
> The logic of the three patches seems right to me.

posted a new patchset that differentiates before and after encoder
finished, so that we can stop muxing entirely


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140115/4d416072/attachment.asc>


More information about the ffmpeg-devel mailing list