codec/h264/h264dec: fixed bug in tests

This commit is contained in:
Saxon 2019-08-01 00:32:54 +09:30
parent 96377f8788
commit aab3473abf
1 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,8 @@ func TestNewMVCExtension(t *testing.T) {
"100" + // u(3) temporal_id = 4 "100" + // u(3) temporal_id = 4
"1" + // u(1) anchor_pic_flag = true "1" + // u(1) anchor_pic_flag = true
"0" + // u(1) inter_view_flag = false "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{ want: MVCExtension{
NonIdrFlag: false, NonIdrFlag: false,
PriorityID: 2, PriorityID: 2,
@ -63,7 +64,8 @@ func TestNewThreeDAVCExtension(t *testing.T) {
"0" + // u(1) non_idr_flag = false "0" + // u(1) non_idr_flag = false
"010" + // u(1) temporal_id = 2 "010" + // u(1) temporal_id = 2
"1" + // u(1) anchor_pic_flag = true "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{ want: ThreeDAVCExtension{
ViewIdx: 16, ViewIdx: 16,
DepthFlag: true, DepthFlag: true,