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
b7ce4f1d
Commit
b7ce4f1d
authored
Sep 09, 2011
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indeo2: fail if input buffer too small
parent
68ca330c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
indeo2.c
libavcodec/indeo2.c
+7
-1
No files found.
libavcodec/indeo2.c
View file @
b7ce4f1d
...
...
@@ -156,6 +156,13 @@ static int ir2_decode_frame(AVCodecContext *avctx,
return
-
1
;
}
start
=
48
;
/* hardcoded for now */
if
(
start
>=
buf_size
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"input buffer size too small (%d)
\n
"
,
buf_size
);
return
AVERROR_INVALIDDATA
;
}
s
->
decode_delta
=
buf
[
18
];
/* decide whether frame uses deltas or not */
...
...
@@ -163,7 +170,6 @@ static int ir2_decode_frame(AVCodecContext *avctx,
for
(
i
=
0
;
i
<
buf_size
;
i
++
)
buf
[
i
]
=
av_reverse
[
buf
[
i
]];
#endif
start
=
48
;
/* hardcoded for now */
init_get_bits
(
&
s
->
gb
,
buf
+
start
,
(
buf_size
-
start
)
*
8
);
...
...
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