Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
c7769df1
Commit
c7769df1
authored
Jan 08, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpza: use fixed-width int types
parent
e1218ce9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
rpza.c
libavcodec/rpza.c
+7
-6
No files found.
libavcodec/rpza.c
View file @
c7769df1
...
...
@@ -34,6 +34,7 @@
* pixels shall be stored in native CPU endianness.
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
@@ -73,13 +74,13 @@ static void rpza_decode_stream(RpzaContext *s)
int
stride
=
s
->
frame
->
linesize
[
0
]
/
2
;
int
row_inc
=
stride
-
4
;
int
chunk_size
;
u
nsigned
char
opcode
;
u
int8_t
opcode
;
int
n_blocks
;
u
nsigned
shor
t
colorA
=
0
,
colorB
;
u
nsigned
shor
t
color4
[
4
];
u
nsigned
char
index
,
idx
;
u
nsigned
shor
t
ta
,
tb
;
u
nsigned
short
*
pixels
=
(
unsigned
shor
t
*
)
s
->
frame
->
data
[
0
];
u
int16_
t
colorA
=
0
,
colorB
;
u
int16_
t
color4
[
4
];
u
int8_t
index
,
idx
;
u
int16_
t
ta
,
tb
;
u
int16_t
*
pixels
=
(
uint16_
t
*
)
s
->
frame
->
data
[
0
];
int
row_ptr
=
0
;
int
pixel_ptr
=
0
;
...
...
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