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
c3c08bae
Commit
c3c08bae
authored
May 27, 2013
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smacker: fix off-by-one error in palette expanding code
parent
5f30c6c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
smacker.c
libavformat/smacker.c
+1
-1
No files found.
libavformat/smacker.c
View file @
c3c08bae
...
@@ -274,7 +274,7 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -274,7 +274,7 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
}
else
if
(
t
&
0x40
){
/* copy with offset */
}
else
if
(
t
&
0x40
){
/* copy with offset */
off
=
avio_r8
(
s
->
pb
);
off
=
avio_r8
(
s
->
pb
);
j
=
(
t
&
0x3F
)
+
1
;
j
=
(
t
&
0x3F
)
+
1
;
if
(
off
+
j
>
0x
ff
)
{
if
(
off
+
j
>
0x
100
)
{
av_log
(
s
,
AV_LOG_ERROR
,
av_log
(
s
,
AV_LOG_ERROR
,
"Invalid palette update, offset=%d length=%d extends beyond palette size
\n
"
,
"Invalid palette update, offset=%d length=%d extends beyond palette size
\n
"
,
off
,
j
);
off
,
j
);
...
...
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