[x265] [PATCH] encoder: ensure returned NAL count matches output array size

Steve Borho steve at borho.org
Wed Sep 25 20:41:10 CEST 2013


On Wed, Sep 25, 2013 at 7:09 AM, Derek Buitenhuis <
derek.buitenhuis at gmail.com> wrote:

> On 9/24/2013 9:29 PM, Steve Borho wrote:
> > +    for (; nalunits[num] != NULL; num++)
>
> Can you count on the last being NULL?
>

Excellent point.  I think today we can but this is not robust going
forward.

-- 
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130925/c40937cd/attachment.html>


More information about the x265-devel mailing list