On Tue, Dec 8, 2015 at 11:19 AM, Lvqier <lvqier at gmail.com> wrote: > Hi Hendrik, > > The attached is another patch which uses av_reallocp to fix this issue. > Thanks, that looks almost good. But you should check for a negative return value, as all errors are negative. - Hendrik