Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解析rtsp崩溃 #341

Open
jiongge opened this issue Jun 17, 2024 · 1 comment
Open

解析rtsp崩溃 #341

jiongge opened this issue Jun 17, 2024 · 1 comment

Comments

@jiongge
Copy link

jiongge commented Jun 17, 2024

在使用rtsp_client_test2来测试rtsp的时候,连接的是SVAC智能摄像机 sir50

运行命令 ./test -c rtsp_client_test2 rtsp://192.168.1.222:554 admin admin123
打印输出:
run rtsp_client_test2
test: source/http-parser.c:665: http_parse_header_line: Assertion `0' failed.
Aborted

后来我修改rtsp-client.c把rtsp_client_input传入的数据打印出来:
run rtsp_client_test2
(jg1)RTSP/1.0 401 Unauthorized
CSeq: 1
Thu, Jun 13 2024 04:00:59 GMT
WWW-Authenticate: Digest realm="Keda Streaming Media", nonce="d8cbba9c5f2f39b15298fe9228b7bca0"

test: source/http-parser.c:665: http_parse_header_line: Assertion `0' failed.
Aborted

应该是这句话Thu, Jun 13 2024 04:00:59 GMT导致崩溃的,修改代码去掉后就没崩溃了

@ireader
Copy link
Owner

ireader commented Jun 17, 2024

CSeq: 1
Thu, Jun 13 2024 04:00:59 GMT
WWW-Authenticate: Digest realm="Keda Streaming Media", nonce="d8cbba9c5f2f39b15298fe9228b7bca0"

Thu, Jun 13 2024 04:00:59 GMT 前面差个date header,正确形式应该是:
Date: Thu, Jun 13 2024 04:00:59 GMT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants