[x265] Encoder::encode(): don't return 0 while flushing.

Satoshi Nakagawa nakagawa424 at oki.com
Tue Jun 17 09:03:55 CEST 2014


using ffmpeg, when input sequence is shorter than lookahead, empty stream is
encoded.



> -----Original Message-----
> From: x265-devel [mailto:x265-devel-bounces at videolan.org] 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 <nakagawa424 at oki.com>
> wrote:
> > # HG changeset patch
> > # User Satoshi Nakagawa <nakagawa424 at oki.com> # 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
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel



More information about the x265-devel mailing list