Skip to content

Commit

Permalink
修复 部分设备H264连接时闪退
Browse files Browse the repository at this point in the history
  • Loading branch information
eiyooooo committed May 9, 2024
1 parent fd7f386 commit 694cab3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,8 @@ private void executeStreamVideo() {
boolean useH265 = videoStream.readByte() == 1;
Pair<Integer, Integer> videoSize = new Pair<>(videoStream.readInt(), videoStream.readInt());
Surface surface = clientView.getSurface();
byte[] videoFrame = controlPacket.readFrame(videoStream);
Pair<byte[], Long> csd0 = new Pair<>(videoFrame, videoStream.readLong());
Pair<byte[], Long> csd1 = useH265 ? null : new Pair<>(videoFrame, videoStream.readLong());
Pair<byte[], Long> csd0 = new Pair<>(controlPacket.readFrame(videoStream), videoStream.readLong());
Pair<byte[], Long> csd1 = useH265 ? null : new Pair<>(controlPacket.readFrame(videoStream), videoStream.readLong());
videoDecode = new VideoDecode(videoSize, surface, csd0, csd1, handler);
// 循环处理报文
while (!Thread.interrupted()) {
Expand Down

0 comments on commit 694cab3

Please sign in to comment.