diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-01 02:59:59 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-02 00:01:29 +0100 |
commit | e9899ca3ddc1c1d2fda526b6fc958ab77fe79adb (patch) | |
tree | b7bb8da1a421a6b038420643598d75b6b1756e17 /ffserver_config.c | |
parent | 5aaf5df06de65b9125bc18057e73b1deaf375f47 (diff) | |
download | ffmpeg-e9899ca3ddc1c1d2fda526b6fc958ab77fe79adb.tar.gz |
ffserver_config: dont pass pointer to enum as pointer to int
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'ffserver_config.c')
-rw-r--r-- | ffserver_config.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ffserver_config.c b/ffserver_config.c index d589ff2b02..8d93d74349 100644 --- a/ffserver_config.c +++ b/ffserver_config.c @@ -594,8 +594,11 @@ static int ffserver_apply_stream_config(AVCodecContext *enc, const AVDictionary ffserver_set_int_param(&enc->width, e->value, 0, INT_MIN, INT_MAX, NULL, 0, NULL); if ((e = av_dict_get(conf, "VideoSizeHeight", NULL, 0))) ffserver_set_int_param(&enc->height, e->value, 0, INT_MIN, INT_MAX, NULL, 0, NULL); - if ((e = av_dict_get(conf, "PixelFormat", NULL, 0))) - ffserver_set_int_param(&enc->pix_fmt, e->value, 0, INT_MIN, INT_MAX, NULL, 0, NULL); + if ((e = av_dict_get(conf, "PixelFormat", NULL, 0))) { + int val; + ffserver_set_int_param(&val, e->value, 0, INT_MIN, INT_MAX, NULL, 0, NULL); + enc->pix_fmt = val; + } if ((e = av_dict_get(conf, "VideoGopSize", NULL, 0))) ffserver_set_int_param(&enc->gop_size, e->value, 0, INT_MIN, INT_MAX, NULL, 0, NULL); if ((e = av_dict_get(conf, "VideoFrameRateNum", NULL, 0))) |