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
d31522b8
Commit
d31522b8
authored
Feb 01, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11720 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1a2c94cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
cinepak.c
libavcodec/cinepak.c
+9
-9
No files found.
libavcodec/cinepak.c
View file @
d31522b8
...
...
@@ -59,7 +59,7 @@ typedef struct CinepakContext {
DSPContext
dsp
;
AVFrame
frame
;
unsigned
char
*
data
;
const
unsigned
char
*
data
;
int
size
;
int
width
,
height
;
...
...
@@ -72,9 +72,9 @@ typedef struct CinepakContext {
}
CinepakContext
;
static
void
cinepak_decode_codebook
(
cvid_codebook_t
*
codebook
,
int
chunk_id
,
int
size
,
uint8_t
*
data
)
int
chunk_id
,
int
size
,
const
uint8_t
*
data
)
{
uint8_t
*
eod
=
(
data
+
size
);
const
uint8_t
*
eod
=
(
data
+
size
);
uint32_t
flag
,
mask
;
int
i
,
n
;
...
...
@@ -121,9 +121,9 @@ static void cinepak_decode_codebook (cvid_codebook_t *codebook,
}
static
int
cinepak_decode_vectors
(
CinepakContext
*
s
,
cvid_strip_t
*
strip
,
int
chunk_id
,
int
size
,
uint8_t
*
data
)
int
chunk_id
,
int
size
,
const
uint8_t
*
data
)
{
uint8_t
*
eod
=
(
data
+
size
);
const
uint8_t
*
eod
=
(
data
+
size
);
uint32_t
flag
,
mask
;
cvid_codebook_t
*
codebook
;
unsigned
int
x
,
y
;
...
...
@@ -264,9 +264,9 @@ static int cinepak_decode_vectors (CinepakContext *s, cvid_strip_t *strip,
}
static
int
cinepak_decode_strip
(
CinepakContext
*
s
,
cvid_strip_t
*
strip
,
uint8_t
*
data
,
int
size
)
cvid_strip_t
*
strip
,
const
uint8_t
*
data
,
int
size
)
{
uint8_t
*
eod
=
(
data
+
size
);
const
uint8_t
*
eod
=
(
data
+
size
);
int
chunk_id
,
chunk_size
;
/* coordinate sanity checks */
...
...
@@ -317,7 +317,7 @@ static int cinepak_decode_strip (CinepakContext *s,
static
int
cinepak_decode
(
CinepakContext
*
s
)
{
uint8_t
*
eod
=
(
s
->
data
+
s
->
size
);
const
uint8_t
*
eod
=
(
s
->
data
+
s
->
size
);
int
i
,
result
,
strip_size
,
frame_flags
,
num_strips
;
int
y0
=
0
;
int
encoded_buf_size
;
...
...
@@ -414,7 +414,7 @@ static int cinepak_decode_init(AVCodecContext *avctx)
static
int
cinepak_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
uint8_t
*
buf
,
int
buf_size
)
const
uint8_t
*
buf
,
int
buf_size
)
{
CinepakContext
*
s
=
avctx
->
priv_data
;
...
...
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