X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fmux.cpp;h=2130752b4c98f0e8bfa5f94c228bc7a947ff215c;hb=b36a6ab3fefcda233d90a79ee6f8f380b4ea765b;hp=0a2eaef6a8310f53b5f7ea0d9a175ea1eb226570;hpb=f34a3e1bbc207541842e0b54d5418d95bafc8e5b;p=nageru diff --git a/shared/mux.cpp b/shared/mux.cpp index 0a2eaef..2130752 100644 --- a/shared/mux.cpp +++ b/shared/mux.cpp @@ -61,9 +61,6 @@ Mux::Mux(AVFormatContext *avctx, int width, int height, Codec video_codec, const 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); } else { assert(video_codec == CODEC_MJPEG); avstream_video->codecpar->codec_id = AV_CODEC_ID_MJPEG;