Commit 472fee91 authored by Michael Niedermayer's avatar Michael Niedermayer

ffserver_config: Setup codecpar in add_codec()

fixes segfault in the status page code
Signed-off-by: 's avatarMichael Niedermayer <>
parent dbe18780
......@@ -320,6 +320,8 @@ done:
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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment