fix rtsp support for panv2

This commit is contained in:
Alfonso Gamboa 2022-05-08 01:25:48 -07:00
parent ccdbade486
commit 7e9aa36d46
4 changed files with 7 additions and 0 deletions

View File

@ -201,6 +201,7 @@ Huge credit to @mnakada for his libcallback library: [https://github.com/mnakada
## Latest Updates ## Latest Updates
* 05-08-22: update libcallback sources with patch to enable pan v2 rtsp functionality.
* 05-08-22: Include iptables and NFSv4 kernel modules, enable swap ON by default. * 05-08-22: Include iptables and NFSv4 kernel modules, enable swap ON by default.
* 05-07-22: RTSP Server fixed, ported latest full libcallback from @mnakada with modifications. * 05-07-22: RTSP Server fixed, ported latest full libcallback from @mnakada with modifications.
* 05-01-22: Removed dropbearmulti, replaced with individual binaries. dropbear dbclient dropbearkey dropbearconvert scp now included. * 05-01-22: Removed dropbearmulti, replaced with individual binaries. dropbear dbclient dropbearkey dropbearconvert scp now included.

Binary file not shown.

Binary file not shown.

View File

@ -82,6 +82,12 @@ int local_sdk_video_set_encode_frame_callback(int ch, void *callback) {
fprintf(stderr,"enc func injection save video_encode_cb=0x%x\n", video_encode_cb); fprintf(stderr,"enc func injection save video_encode_cb=0x%x\n", video_encode_cb);
callback = video_encode_capture; callback = video_encode_capture;
} }
/* ch0 callback for panv2 is 0x47accc */
if( (ch == 0) && callback == 0x47accc) {
video_encode_cb = callback;
fprintf(stderr,"enc func injection save video_encode_cb=0x%x\n", video_encode_cb);
callback = video_encode_capture;
}
return real_local_sdk_video_set_encode_frame_callback(ch, callback); return real_local_sdk_video_set_encode_frame_callback(ch, callback);
} }