ffserver_config: postpone codec context creation
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Sun, 19 Oct 2014 19:29:40 +0000 (21:29 +0200)
committerLukasz Marek <lukasz.m.luki2@gmail.com>
Sat, 1 Nov 2014 00:04:12 +0000 (01:04 +0100)
commited1f8915daf6b84a940463dfe83c7b970f82383d
treefb1682a824e5a228280cf1212150f8a81e05a3d8
parentfe72622819d39623d87b68784dba189bfa564546
ffserver_config: postpone codec context creation

So far AVCodecContext was created without codec specified.
This causes internal data to not be initialized to defaults.

This commit postpone context creation until all information is gathered.

Partially fixes #1275
ffserver_config.c
ffserver_config.h