mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-06 08:06:58 +08:00
remove useless append()
This commit is contained in:
@@ -146,7 +146,7 @@ func (s *rtspSource) run(ctx context.Context) error {
|
||||
rtpPacket: ctx.Packet,
|
||||
ptsEqualsDTS: ctx.PTSEqualsDTS,
|
||||
pts: ctx.H264PTS,
|
||||
h264NALUs: append([][]byte(nil), ctx.H264NALUs...),
|
||||
h264NALUs: ctx.H264NALUs,
|
||||
})
|
||||
} else {
|
||||
res.stream.writeData(&data{
|
||||
|
Reference in New Issue
Block a user