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
c6a11714
Commit
c6a11714
authored
May 05, 2018
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/fic: Avoid some magic numbers related to cursors
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
ba97d75a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fic.c
libavcodec/fic.c
+2
-1
No files found.
libavcodec/fic.c
View file @
c6a11714
...
...
@@ -82,6 +82,7 @@ static const uint8_t fic_qmat_lq[64] = {
static
const
uint8_t
fic_header
[
7
]
=
{
0
,
0
,
1
,
'F'
,
'I'
,
'C'
,
'V'
};
#define FIC_HEADER_SIZE 27
#define CURSOR_OFFSET 59
static
av_always_inline
void
fic_idct
(
int16_t
*
blk
,
int
step
,
int
shift
,
int
rnd
)
{
...
...
@@ -416,7 +417,7 @@ static int fic_decode_frame(AVCodecContext *avctx, void *data,
/* Draw cursor. */
if
(
!
skip_cursor
)
{
memcpy
(
ctx
->
cursor_buf
,
src
+
59
,
32
*
32
*
4
);
memcpy
(
ctx
->
cursor_buf
,
src
+
CURSOR_OFFSET
,
sizeof
(
ctx
->
cursor_buf
)
);
fic_draw_cursor
(
avctx
,
cur_x
,
cur_y
);
}
...
...
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