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
0ac3b8fc
Commit
0ac3b8fc
authored
Sep 06, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8svx: check packet size before reading the initial sample value.
parent
e3718784
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
8svx.c
libavcodec/8svx.c
+4
-0
No files found.
libavcodec/8svx.c
View file @
0ac3b8fc
...
...
@@ -74,6 +74,10 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data, int *data_si
int
consumed
=
buf_size
;
if
(
avctx
->
frame_number
==
0
)
{
if
(
buf_size
<
2
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"packet size is too small
\n
"
);
return
AVERROR
(
EINVAL
);
}
esc
->
fib_acc
=
(
int8_t
)
buf
[
1
]
+
128
;
buf_size
-=
2
;
buf
+=
2
;
...
...
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