From aab3473abfba0f178e4beeab373c803df99c12ff Mon Sep 17 00:00:00 2001 From: Saxon Date: Thu, 1 Aug 2019 00:32:54 +0930 Subject: [PATCH] codec/h264/h264dec: fixed bug in tests --- codec/h264/h264dec/nalunit_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/codec/h264/h264dec/nalunit_test.go b/codec/h264/h264dec/nalunit_test.go index f3828880..930fd2b3 100644 --- a/codec/h264/h264dec/nalunit_test.go +++ b/codec/h264/h264dec/nalunit_test.go @@ -21,7 +21,8 @@ func TestNewMVCExtension(t *testing.T) { "100" + // u(3) temporal_id = 4 "1" + // u(1) anchor_pic_flag = true "0" + // u(1) inter_view_flag = false - "1", // u(1) reserved_one_bit = 1 + "1" + // u(1) reserved_one_bit = 1 + "0 00000000", // Some padding want: MVCExtension{ NonIdrFlag: false, PriorityID: 2, @@ -63,7 +64,8 @@ func TestNewThreeDAVCExtension(t *testing.T) { "0" + // u(1) non_idr_flag = false "010" + // u(1) temporal_id = 2 "1" + // u(1) anchor_pic_flag = true - "1", // u(1) inter_view_flag = true + "1" + // u(1) inter_view_flag = true + "000", // Some padding want: ThreeDAVCExtension{ ViewIdx: 16, DepthFlag: true,