X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpd.cpp;h=4b24890aa687f53bc4fc8aaf3ae0f49744ae8e4e;hb=72d1b1cd96eacf39732a8fc9791c7fcf4d7bf1c6;hp=3eda2a1e34b5d9fc7e62479d6a53ffe9612e3679;hpb=835e7727e1d05190d550061cb8fc8cb2daa2283b;p=nageru diff --git a/httpd.cpp b/httpd.cpp index 3eda2a1..4b24890 100644 --- a/httpd.cpp +++ b/httpd.cpp @@ -115,6 +115,8 @@ HTTPD::Mux::Mux(AVFormatContext *avctx, int width, int height) exit(1); } avstream_video->time_base = AVRational{1, TIMEBASE}; + avstream_video->codec->codec_type = AVMEDIA_TYPE_VIDEO; + avstream_video->codec->codec_id = AV_CODEC_ID_H264; avstream_video->codec->width = width; avstream_video->codec->height = height; avstream_video->codec->time_base = AVRational{1, TIMEBASE};