X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffserver.c;h=bddcb7d2b4ea31073e30e203e3c312213823298a;hb=220de4fa208424d9ebe0210ad9cf63d3b765f994;hp=79463c0e64981927c5a6025ea7751bde6fa77f88;hpb=1d9569f9e8361c3be06b9732c0b80639a51b4b87;p=ffmpeg diff --git a/ffserver.c b/ffserver.c index 79463c0e649..bddcb7d2b4e 100644 --- a/ffserver.c +++ b/ffserver.c @@ -30,7 +30,7 @@ #include #include #include "libavformat/avformat.h" -// FIXME those are internal headers, avserver _really_ shouldn't use them +// FIXME those are internal headers, ffserver _really_ shouldn't use them #include "libavformat/ffm.h" #include "libavformat/network.h" #include "libavformat/os_support.h" @@ -1872,7 +1872,7 @@ static int http_parse_request(HTTPContext *c) static void fmt_bytecount(AVIOContext *pb, int64_t count) { - static const char *suffix = " kMGTP"; + static const char suffix[] = " kMGTP"; const char *s; for (s = suffix; count >= 100000 && s[1]; count /= 1000, s++); @@ -4221,8 +4221,8 @@ static int parse_ffconfig(const char *filename) } stream->fmt = ffserver_guess_format(NULL, stream->filename, NULL); - avcodec_get_context_defaults2(&video_enc, AVMEDIA_TYPE_VIDEO); - avcodec_get_context_defaults2(&audio_enc, AVMEDIA_TYPE_AUDIO); + avcodec_get_context_defaults3(&video_enc, NULL); + avcodec_get_context_defaults3(&audio_enc, NULL); audio_id = CODEC_ID_NONE; video_id = CODEC_ID_NONE;