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
0a403588
Commit
0a403588
authored
Jan 21, 2012
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make variable that always has the same value const.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
daa47fdd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
fraps.c
libavcodec/fraps.c
+2
-3
No files found.
libavcodec/fraps.c
View file @
0a403588
...
@@ -138,7 +138,8 @@ static int decode_frame(AVCodecContext *avctx,
...
@@ -138,7 +138,8 @@ static int decode_frame(AVCodecContext *avctx,
const
uint32_t
*
buf32
;
const
uint32_t
*
buf32
;
uint32_t
*
luma1
,
*
luma2
,
*
cb
,
*
cr
;
uint32_t
*
luma1
,
*
luma2
,
*
cb
,
*
cr
;
uint32_t
offs
[
4
];
uint32_t
offs
[
4
];
int
i
,
j
,
is_chroma
,
planes
;
int
i
,
j
,
is_chroma
;
const
int
planes
=
3
;
header
=
AV_RL32
(
buf
);
header
=
AV_RL32
(
buf
);
...
@@ -246,7 +247,6 @@ static int decode_frame(AVCodecContext *avctx,
...
@@ -246,7 +247,6 @@ static int decode_frame(AVCodecContext *avctx,
* Fraps v4 is virtually the same
* Fraps v4 is virtually the same
*/
*/
avctx
->
pix_fmt
=
PIX_FMT_YUVJ420P
;
avctx
->
pix_fmt
=
PIX_FMT_YUVJ420P
;
planes
=
3
;
f
->
reference
=
3
;
f
->
reference
=
3
;
f
->
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
f
->
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
FF_BUFFER_HINTS_PRESERVE
|
FF_BUFFER_HINTS_PRESERVE
|
...
@@ -291,7 +291,6 @@ static int decode_frame(AVCodecContext *avctx,
...
@@ -291,7 +291,6 @@ static int decode_frame(AVCodecContext *avctx,
case
5
:
case
5
:
/* Virtually the same as version 4, but is for RGB24 */
/* Virtually the same as version 4, but is for RGB24 */
avctx
->
pix_fmt
=
PIX_FMT_BGR24
;
avctx
->
pix_fmt
=
PIX_FMT_BGR24
;
planes
=
3
;
f
->
reference
=
3
;
f
->
reference
=
3
;
f
->
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
f
->
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
FF_BUFFER_HINTS_PRESERVE
|
FF_BUFFER_HINTS_PRESERVE
|
...
...
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