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
0279d1d0
Commit
0279d1d0
authored
Aug 12, 2012
by
Michael Niedermayer
Committed by
Vittorio Giovara
Mar 31, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sgi: fix end of line boundary detection
parent
e7cd53bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sgidec.c
libavcodec/sgidec.c
+4
-2
No files found.
libavcodec/sgidec.c
View file @
0279d1d0
...
...
@@ -48,13 +48,14 @@ static int expand_rle_row(SgiState *s, uint8_t *out_buf,
{
unsigned
char
pixel
,
count
;
unsigned
char
*
orig
=
out_buf
;
uint8_t
*
out_end
=
out_buf
+
len
;
while
(
1
)
{
while
(
out_buf
<
out_end
)
{
if
(
bytestream2_get_bytes_left
(
&
s
->
g
)
<
1
)
return
AVERROR_INVALIDDATA
;
pixel
=
bytestream2_get_byteu
(
&
s
->
g
);
if
(
!
(
count
=
(
pixel
&
0x7f
)))
{
return
(
out_buf
-
orig
)
/
pixelstride
;
break
;
}
/* Check for buffer overflow. */
...
...
@@ -77,6 +78,7 @@ static int expand_rle_row(SgiState *s, uint8_t *out_buf,
}
}
}
return
(
out_buf
-
orig
)
/
pixelstride
;
}
/**
...
...
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