X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fmux.cpp;h=f6452795f4ab80ff51b6b9e391191c3c6194e90d;hb=8bb8bb7cc9700befab35a8cc2c4b7a88f0638af9;hp=b9ca553ee1b2ac1731d1345cd7df8e0e162f308a;hpb=9fa1937b8af43ec93e6fd4ea3a23519257b3274d;p=nageru diff --git a/shared/mux.cpp b/shared/mux.cpp index b9ca553..f645279 100644 --- a/shared/mux.cpp +++ b/shared/mux.cpp @@ -59,6 +59,8 @@ Mux::Mux(AVFormatContext *avctx, int width, int height, Codec video_codec, const avstream_video->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; if (video_codec == CODEC_H264) { avstream_video->codecpar->codec_id = AV_CODEC_ID_H264; + } else if (video_codec == CODEC_AV1) { + avstream_video->codecpar->codec_id = AV_CODEC_ID_AV1; } else if (video_codec == CODEC_NV12) { avstream_video->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; avstream_video->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag(AV_PIX_FMT_NV12);