Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
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
Linshizhi
ffmpeg.wasm-core
Commits
305a9359
Commit
305a9359
authored
Nov 22, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
brender: move declaration out of for() to make old compilers happy.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
492a5f83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
brender_pix.c
libavcodec/brender_pix.c
+2
-1
No files found.
libavcodec/brender_pix.c
View file @
305a9359
...
...
@@ -162,6 +162,7 @@ static int brpix_decode_frame(AVCodecContext *avctx,
(
chunk_type
==
0x3
||
chunk_type
==
0x3d
))
{
BRPixHeader
palhdr
;
uint32_t
*
pal_out
=
(
uint32_t
*
)
s
->
frame
.
data
[
1
];
int
i
;
ret
=
brpix_decode_header
(
&
palhdr
,
&
gb
);
if
(
!
ret
)
{
...
...
@@ -182,7 +183,7 @@ static int brpix_decode_frame(AVCodecContext *avctx,
return
AVERROR_INVALIDDATA
;
}
// convert 0RGB to machine endian format (ARGB32)
for
(
i
nt
i
=
0
;
i
<
256
;
++
i
)
{
for
(
i
=
0
;
i
<
256
;
++
i
)
{
bytestream2_skipu
(
&
gb
,
1
);
*
pal_out
++
=
(
0xFFU
<<
24
)
|
bytestream2_get_be24u
(
&
gb
);
}
...
...
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