From bc19eeebc4ec6d19403dd35eea2ce4843031ba39 Mon Sep 17 00:00:00 2001 From: Mr-Dave Date: Sun, 26 Mar 2023 00:30:31 -0600 Subject: [PATCH] Allow for bad packets when file processing. Closes #1651 --- src/netcam_rtsp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/netcam_rtsp.c b/src/netcam_rtsp.c index e729ef0a..5c475ab8 100644 --- a/src/netcam_rtsp.c +++ b/src/netcam_rtsp.c @@ -464,7 +464,12 @@ static int netcam_rtsp_decode_video(struct rtsp_context *rtsp_data) av_strerror(retcd, errstr, sizeof(errstr)); MOTION_LOG(INF, TYPE_NETCAM, NO_ERRNO ,_("Error sending packet to codec: %s"), errstr); - return -1; + /* This is non fatal for file processing */ + if (mystreq(rtsp_data->service, "file")) { + return 0; + } else { + return -1; + } } if (mystrceq(rtsp_data->decoder_nm,"vaapi")) {