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
33796645
Commit
33796645
authored
Feb 24, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loco: check the last plane too
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
714ff448
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
loco.c
libavcodec/loco.c
+5
-1
No files found.
libavcodec/loco.c
View file @
33796645
...
@@ -240,10 +240,14 @@ static int decode_frame(AVCodecContext *avctx,
...
@@ -240,10 +240,14 @@ static int decode_frame(AVCodecContext *avctx,
break
;
break
;
}
}
if
(
decoded
<
0
||
decoded
>
buf_size
)
goto
buf_too_small
;
buf_size
-=
decoded
;
*
got_frame
=
1
;
*
got_frame
=
1
;
*
(
AVFrame
*
)
data
=
l
->
pic
;
*
(
AVFrame
*
)
data
=
l
->
pic
;
return
buf_size
<
0
?
-
1
:
avpkt
->
size
-
buf_size
;
return
avpkt
->
size
-
buf_size
;
buf_too_small:
buf_too_small:
av_log
(
avctx
,
AV_LOG_ERROR
,
"Input data too small.
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Input data too small.
\n
"
);
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
...
...
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