OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbe1878
)
ffserver_config: Setup codecpar in add_codec()
author
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 29 Nov 2016 17:48:40 +0000
(18:48 +0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 29 Nov 2016 18:26:26 +0000
(19:26 +0100)
fixes segfault in the status page code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffserver_config.c
patch
|
blob
|
history
diff --git
a/ffserver_config.c
b/ffserver_config.c
index
14c58ce
..
2354cc7
100644
(file)
--- 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;
}