From 824cbb787960c43d4a37fa8fca3d4d1f89f051c6 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 7 Jan 2021 09:36:54 -0500 Subject: [PATCH] spacing and NULL=>nullptr --- src/zm_local_camera.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zm_local_camera.cpp b/src/zm_local_camera.cpp index f07e931c0..581d4d980 100644 --- a/src/zm_local_camera.cpp +++ b/src/zm_local_camera.cpp @@ -2255,19 +2255,19 @@ int LocalCamera::PostCapture() { AVStream *LocalCamera::get_VideoStream() { if ( ! video_stream ) { AVFormatContext *oc = avformat_alloc_context(); - video_stream = avformat_new_stream( oc, NULL ); + video_stream = avformat_new_stream(oc, nullptr); if ( video_stream ) { video_stream->time_base = (AVRational){1, 1000000}; // microseconds as base frame rate #if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0) video_stream->codecpar->width = width; video_stream->codecpar->height = height; - video_stream->codecpar->format = GetFFMPEGPixelFormat(colours,subpixelorder); + video_stream->codecpar->format = GetFFMPEGPixelFormat(colours, subpixelorder); video_stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; video_stream->codecpar->codec_id = AV_CODEC_ID_NONE; #else video_stream->codec->width = width; video_stream->codec->height = height; - video_stream->codec->pix_fmt = GetFFMPEGPixelFormat(colours,subpixelorder); + video_stream->codec->pix_fmt = GetFFMPEGPixelFormat(colours, subpixelorder); video_stream->codec->codec_type = AVMEDIA_TYPE_VIDEO; video_stream->codec->codec_id = AV_CODEC_ID_NONE; #endif