Commit e34cbd1d 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 <>
(cherry picked from commit 472fee91)
parent 6c1a2e6b
......@@ -323,6 +323,8 @@ done:
av_stream_set_recommended_encoder_configuration(st, 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