[x264-devel] cli: Refactor filter option parsing

Henrik Gramner git at videolan.org
Tue Apr 12 20:36:15 CEST 2016


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Thu Feb  4 20:06:57 2016 +0100| [0082b717199bafb4abbb6638e7c30d50deaf2c1b] | committer: Henrik Gramner

cli: Refactor filter option parsing

The old code contained a whole bunch of memory leaks, unchecked mallocs,
sections of dead code, etc. and was generally overly complex.

Also consolidate some memory allocations into a single one.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=0082b717199bafb4abbb6638e7c30d50deaf2c1b
---

 filters/filters.c      |  181 ++++++++++++++++--------------------------------
 filters/filters.h      |   13 ++--
 filters/video/crop.c   |   31 ++++++---
 filters/video/depth.c  |    4 +-
 filters/video/resize.c |   19 +++--
 5 files changed, 99 insertions(+), 149 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=0082b717199bafb4abbb6638e7c30d50deaf2c1b


More information about the x264-devel mailing list