ffserver: refactor build_feed_streams()
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Thu, 17 Dec 2015 02:14:25 +0000 (18:14 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sat, 19 Dec 2015 09:52:20 +0000 (01:52 -0800)
commitae2ed20b5912b00866631e78049f165deb9f2fb2
tree2f88abea264ce6d6b5610d40c3e6e5d52328acf1
parent4ba148a6ea2c3f2491f1dc60246dd62c665ce1cf
ffserver: refactor build_feed_streams()

* Avoid excesive nesting that made it really hard to follow
* Drop unneeded vars
* Factor out codec compatibility check routine
* Ensure inputs are closed and contexts are freed as needed
  before returning

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
ffserver.c