mirror of
https://github.com/Motion-Project/motion.git
synced 2026-04-20 14:07:11 -04:00
Allow for bad packets when file processing. Closes #1651
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user