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
ed1f891 ffserver_config: postpone codec context creation
ffserver_config.c | 386 ++++++++++++++++++++++++++++++++++++++++-------------
ffserver_config.h | 9 +-
2 files changed, 297 insertions(+), 98 deletions(-)