From 0c18578d3493bab0d194fae8d3f04407f7ea0fbf Mon Sep 17 00:00:00 2001 From: HarlanC Date: Fri, 27 Oct 2023 22:50:56 +0000 Subject: [PATCH] fix parse H264 sps panic --- library/codec/h264/src/sps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/codec/h264/src/sps.rs b/library/codec/h264/src/sps.rs index 222f15fa..831a3c1f 100644 --- a/library/codec/h264/src/sps.rs +++ b/library/codec/h264/src/sps.rs @@ -102,7 +102,7 @@ impl SpsParser { }; for i in 0..matrix_dim { - self.sps.seq_scaling_list_present_flag[i] = self.bits_reader.read_bit()?; + self.sps.seq_scaling_list_present_flag.push(self.bits_reader.read_bit()?); } } }