diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-29 20:48:40 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-29 21:26:26 +0300 |
commit | 472fee91bcf9b7bae81fd4c00bbe5151ca458a7c (patch) | |
tree | 3d72a0abc28d4805c7b1d8fa81565d0681163935 /ffserver_config.c | |
parent | dbe18780609a891cc50fcabbfb6c08f7182e1b49 (diff) |
ffserver_config: Setup codecpar in add_codec()
fixes segfault in the status page code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffserver_config.c')
-rw-r--r-- | ffserver_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ffserver_config.c b/ffserver_config.c index 14c58cebb5..2354cc7dc0 100644 --- a/ffserver_config.c +++ b/ffserver_config.c @@ -320,6 +320,8 @@ done: av_dict_free(&recommended); st->recommended_encoder_configuration = enc_config; st->codec = av; + st->codecpar = avcodec_parameters_alloc(); + avcodec_parameters_from_context(st->codecpar, av); stream->streams[stream->nb_streams++] = st; } |