fix no rtsp video on old rtsp firmware

This commit is contained in:
Alfonso Gamboa 2022-06-19 01:02:15 -07:00
parent c4e3827d2b
commit e3fc6d3f39
3 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -186,6 +186,10 @@ int local_sdk_video_set_encode_frame_callback(int ch, void *callback) {
video_encode_cb = callback; video_encode_cb = 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;
} else if( (ch == 0) && ch_count == 3) {
video_encode_cb = callback;
fprintf(stderr,"RTSP FIRMWARE enc func injection save video_encode_cb=0x%x\n", video_encode_cb);
callback = video_encode_capture;
} }
fprintf(stderr,"ch count is %x\n", ch_count); fprintf(stderr,"ch count is %x\n", ch_count);