]> git.sesse.net Git - nageru/blobdiff - httpd.cpp
Fix issues with newer ffmpeg.
[nageru] / httpd.cpp
index 3eda2a1e34b5d9fc7e62479d6a53ffe9612e3679..4b24890aa687f53bc4fc8aaf3ae0f49744ae8e4e 100644 (file)
--- 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};