mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-21 06:50:56 +00:00
ffserver_config: Setup codecpar in add_codec()
fixes segfault in the status page code Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
dbe1878060
commit
472fee91bc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user