cli: Refactor filter option parsing
authorHenrik Gramner <henrik@gramner.com>
Thu, 4 Feb 2016 19:06:57 +0000 (20:06 +0100)
committerHenrik Gramner <henrik@gramner.com>
Tue, 12 Apr 2016 15:10:29 +0000 (17:10 +0200)
commit0082b717199bafb4abbb6638e7c30d50deaf2c1b
tree43ac0d193d081e62310f081d9250833b54e284d8
parentdfe394cadc8a39752de5b3f4a0be222c1b9290f2
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.
filters/filters.c
filters/filters.h
filters/video/crop.c
filters/video/depth.c
filters/video/resize.c