using ffmpeg, when input sequence is shorter than lookahead, empty stream is encoded.
> -----Original Message----- > From: x265-devel [mailto:[email protected]] On Behalf Of > Steve Borho > Sent: Tuesday, June 17, 2014 3:35 PM > To: Development for x265 > Subject: Re: [x265] Encoder::encode(): don't return 0 while flushing. > > On Tue, Jun 17, 2014 at 12:47 AM, Satoshi Nakagawa <[email protected]> > wrote: > > # HG changeset patch > > # User Satoshi Nakagawa <[email protected]> # Date 1402983802 -32400 > > # Tue Jun 17 14:43:22 2014 +0900 > > # Node ID cf222575f2032ff5824d58470d63561f79c3905e > > # Parent f25ed861850950d2bd31c51dbc9267333515af88 > > Encoder::encode(): don't return 0 while flushing. > > > > diff -r f25ed8618509 -r cf222575f203 source/encoder/encoder.cpp > > --- a/source/encoder/encoder.cpp Mon Jun 16 20:32:13 2014 -0500 > > +++ b/source/encoder/encoder.cpp Tue Jun 17 14:43:22 2014 +0900 > > @@ -481,6 +481,11 @@ > > curEncoder->m_enable.trigger(); > > } > > > > + if (!ret && flush && fenc) > > + { > > + return encode(flush, NULL, pic_out, nalunits); > > + } > > + > > what is this trying to fix? won't pic_out be wrong if we do this? > > -- > Steve > _______________________________________________ > x265-devel mailing list > [email protected] > https://mailman.videolan.org/listinfo/x265-devel _______________________________________________ x265-devel mailing list [email protected] https://mailman.videolan.org/listinfo/x265-devel
