Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
4d85ec34
Commit
4d85ec34
authored
17 years ago
by
Michael Matz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile on 64bit platforms.
From-SVN: r132300
parent
5586014a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
gcc/testsuite/gcc.dg/pr35065.c
+7
-4
No files found.
gcc/testsuite/gcc.dg/pr35065.c
View file @
4d85ec34
...
...
@@ -30,8 +30,11 @@ struct block_t {
size_t
i_buffer
;
uint8_t
*
p_buffer
;
};
block_t
*
block_New
(
void
*
,
size_t
);
block_t
*
nal_get_annexeb
(
decoder_t
*
,
uint8_t
*
,
int
);
block_t
*
block_ChainGather
(
block_t
*
);
static
inline
block_t
*
block_Duplicate
(
block_t
*
p_block
)
{
block_t
*
p_dup
=
(
block_t
*
)
block_New
(
((
void
*
)
0
),
p_block
->
i_buffer
);
block_t
*
p_dup
=
block_New
(
((
void
*
)
0
),
p_block
->
i_buffer
);
p_dup
->
i_dts
=
p_block
->
i_dts
;
p_dup
->
i_pts
=
p_block
->
i_pts
;
}
...
...
@@ -136,7 +139,7 @@ int Open( vlc_object_t *p_this ) {
i
<
i_sps
;
i
++
)
{
int
i_length
=
U16_AT
(
p
);
block_t
*
p_sps
=
(
block_t
*
)
nal_get_annexeb
(
p_dec
,
p
+
2
,
i_length
);
block_t
*
p_sps
=
nal_get_annexeb
(
p_dec
,
p
+
2
,
i_length
);
ParseNALBlock
(
p_dec
,
p_sps
);
}
}
...
...
@@ -183,7 +186,7 @@ block_t *ParseNALBlock( decoder_t *p_dec, block_t *p_frag )
block_ChainAppend
(
&
p_sps
,
p_pps
);
block_ChainAppend
(
&
p_sps
,
p_sys
->
p_frame
);
p_sys
->
b_header
=
1
;
p_pic
=
(
block_t
*
)
block_ChainGather
(
p_sps
);
p_pic
=
block_ChainGather
(
p_sps
);
}
}
while
(
0
);
}
...
...
@@ -212,7 +215,7 @@ block_t *ParseNALBlock( decoder_t *p_dec, block_t *p_frag )
p_sps
->
i_pts
=
p_sys
->
p_frame
->
i_pts
;
block_ChainAppend
(
&
p_sps
,
p_pps
);
block_ChainAppend
(
&
p_sps
,
p_sys
->
p_frame
);
p_pic
=
(
block_t
*
)
block_ChainGather
(
p_sps
);
p_pic
=
block_ChainGather
(
p_sps
);
}
p_pic
->
i_flags
|=
p_sys
->
slice
.
i_frame_type
;
}
while
(
0
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment