bluenviron / gortsplib

RTSP 1.0 client and server library for the Go programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decode AAC payload when AU data length is zero

BenLocal opened this issue · comments

When aac payload is 0x00, 0x10, 0x00, 0x00, current decode successfully return empty AU data list. I think can return an invalid AU-data-length error to skip this payload

sdp:

v=0
o=- 1712547896039071 1 IN IP4 172.18.88.21
s=Session streamed by "testOnDemandRTSPServer"
i=13_0
t=0 0
a=tool:LIVE555 Streaming Media v2018.01.24
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "testOnDemandRTSPServer"
a=x-qt-text-inf:13_0
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=control:track1
m=audio 0 RTP/AVP 97
c=IN IP4 0.0.0.0
b=AS:96
a=rtpmap:97 MPEG4-GENERIC/44100/2
a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1210
a=control:track2

aac payload:
image

Do you have any plans to fix it in mediamtx