On Tue, Mar 03, 2015 at 10:51:01PM -0400, Peter Cordes wrote: [...] > Anyway, the av_dict change is the one that requires the most review, so > I'll make this email focus on that set of changes. > https://github.com/FFmpeg/FFmpeg/pull/118
pull req #3, patch #1 review > - char *ret = out, *end = out; > + char *ret = out, *end_quote = out; why ? also cosmetical changes should, if they are done, be in seperate patches > - while (*p && !strspn(p, term)) { > + while (*p && !strchr(term, *p)) { this should be in a seperate patch > + ret = av_realloc(ret, out - ret + 2); > + // if realloc fails to shrink, we're hosed anyway; just leak the old > buffer > return ret; if realloc fails to shrink, the original unshrunk array should be returned to avoid the leak and failure [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No snowflake in an avalanche ever feels responsible. -- Voltaire
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel