mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.82k stars 423 forks source link

[0.3.0] Segfault when starting with multicast #278

Closed wvdakker closed 2 years ago

wvdakker commented 2 years ago

Describe the bug Startup with multicast ends up in a segfault

To Reproduce Steps to reproduce the behavior: v4l2rtspserver -W 1024 -H 576 -F 8 -P 20000 -M235.1.2.3:20000 /dev/video0

Expected behavior A running server with multicast stream

Screenshots LOG: [NOTICE] /v4l2rtspserver/src/V4l2RTSPServer.cpp:62 Create Source .../dev/video0 [NOTICE] /v4l2rtspserver/inc/V4l2RTSPServer.h:175 RTP address 235.1.2.3:20000 [NOTICE] /v4l2rtspserver/inc/V4l2RTSPServer.h:176 Segmentation fault

Desktop (please complete the following information): Linux 5.10.92+ #1514 Mon Jan 17 17:35:21 GMT 2022 armv6l GNU/Linux PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye

Additional context Starting with the multicast option ends up in a segfault in V4l2RTSPServer.h (line 176) Starting with the unicast option is working fine.