From 813730f8b52b98a3497c9403662a4f5302ed494b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 20 Apr 2021 12:59:41 -0400 Subject: [PATCH] remove dead code --- src/zm_local_camera.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zm_local_camera.cpp b/src/zm_local_camera.cpp index 7960224a3..55bf0f2cb 100644 --- a/src/zm_local_camera.cpp +++ b/src/zm_local_camera.cpp @@ -144,6 +144,7 @@ static _AVPIXELFORMAT getFfPixFormatFromV4lPalette(int v4l_version, int palette) { Fatal("Can't find swscale format for palette %d", palette); break; +#if 0 // These are all spare and may match some of the above pixFormat = AV_PIX_FMT_YUVJ420P; pixFormat = AV_PIX_FMT_YUVJ422P; @@ -169,6 +170,7 @@ static _AVPIXELFORMAT getFfPixFormatFromV4lPalette(int v4l_version, int palette) //pixFormat = AV_PIX_FMT_VDPAU_H264; //pixFormat = AV_PIX_FMT_VDPAU_MPEG1; //pixFormat = AV_PIX_FMT_VDPAU_MPEG2; +#endif } } // end switch palette } // end if v4l2 @@ -211,6 +213,7 @@ static _AVPIXELFORMAT getFfPixFormatFromV4lPalette(int v4l_version, int palette) { Fatal("Can't find swscale format for palette %d", palette); break; +#if 0 // These are all spare and may match some of the above pixFormat = AV_PIX_FMT_YUVJ420P; pixFormat = AV_PIX_FMT_YUVJ422P; @@ -237,6 +240,7 @@ static _AVPIXELFORMAT getFfPixFormatFromV4lPalette(int v4l_version, int palette) //pixFormat = AV_PIX_FMT_VDPAU_H264; //pixFormat = AV_PIX_FMT_VDPAU_MPEG1; //pixFormat = AV_PIX_FMT_VDPAU_MPEG2; +#endif } } // end switch palette } // end if v4l1 @@ -2251,9 +2255,5 @@ int LocalCamera::Capture(ZMPacket &zm_packet) { int LocalCamera::PostCapture() { return 1; - Debug(4, "Post-capturing"); - return 0; } - - #endif // ZM_HAS_V4L