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
1855abe5
Commit
1855abe5
authored
Feb 01, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11764 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
73965d1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fraps.c
libavcodec/fraps.c
+4
-4
No files found.
libavcodec/fraps.c
View file @
1855abe5
...
...
@@ -84,7 +84,7 @@ static int huff_cmp(const void *va, const void *vb){
* decode Fraps v2 packed plane
*/
static
int
fraps2_decode_plane
(
FrapsContext
*
s
,
uint8_t
*
dst
,
int
stride
,
int
w
,
int
h
,
uint8_t
*
src
,
int
size
,
int
Uoff
)
int
h
,
const
uint8_t
*
src
,
int
size
,
int
Uoff
)
{
int
i
,
j
;
GetBitContext
gb
;
...
...
@@ -128,7 +128,7 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
*/
static
int
decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
uint8_t
*
buf
,
int
buf_size
)
const
uint8_t
*
buf
,
int
buf_size
)
{
FrapsContext
*
const
s
=
avctx
->
priv_data
;
AVFrame
*
frame
=
data
;
...
...
@@ -136,7 +136,7 @@ static int decode_frame(AVCodecContext *avctx,
uint32_t
header
;
unsigned
int
version
,
header_size
;
unsigned
int
x
,
y
;
uint32_t
*
buf32
;
const
uint32_t
*
buf32
;
uint32_t
*
luma1
,
*
luma2
,
*
cb
,
*
cr
;
uint32_t
offs
[
4
];
int
i
,
is_chroma
,
planes
;
...
...
@@ -190,7 +190,7 @@ static int decode_frame(AVCodecContext *avctx,
f
->
key_frame
=
f
->
pict_type
==
FF_I_TYPE
;
if
(
f
->
pict_type
==
FF_I_TYPE
)
{
buf32
=
(
uint32_t
*
)
buf
;
buf32
=
(
const
uint32_t
*
)
buf
;
for
(
y
=
0
;
y
<
avctx
->
height
/
2
;
y
++
){
luma1
=
(
uint32_t
*
)
&
f
->
data
[
0
][
y
*
2
*
f
->
linesize
[
0
]
];
luma2
=
(
uint32_t
*
)
&
f
->
data
[
0
][
(
y
*
2
+
1
)
*
f
->
linesize
[
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