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
0abe25aa
Commit
0abe25aa
authored
Jan 17, 2012
by
Michael Bradshaw
Committed by
Carl Eugen Hoyos
Jan 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libopenjpegenc: Add error messages.
parent
ee33eb40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
libopenjpegenc.c
libavcodec/libopenjpegenc.c
+4
-0
No files found.
libavcodec/libopenjpegenc.c
View file @
0abe25aa
...
@@ -207,6 +207,7 @@ static int libopenjpeg_copy_packed8(AVCodecContext *avctx, AVFrame *frame, opj_i
...
@@ -207,6 +207,7 @@ static int libopenjpeg_copy_packed8(AVCodecContext *avctx, AVFrame *frame, opj_i
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
if
(
image
->
comps
[
compno
].
w
>
frame
->
linesize
[
0
]
/
numcomps
)
{
if
(
image
->
comps
[
compno
].
w
>
frame
->
linesize
[
0
]
/
numcomps
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Error: frame's linesize is too small for the image
\n
"
);
return
0
;
return
0
;
}
}
}
}
...
@@ -233,6 +234,7 @@ static int libopenjpeg_copy_packed16(AVCodecContext *avctx, AVFrame *frame, opj_
...
@@ -233,6 +234,7 @@ static int libopenjpeg_copy_packed16(AVCodecContext *avctx, AVFrame *frame, opj_
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
if
(
image
->
comps
[
compno
].
w
>
frame
->
linesize
[
0
]
/
numcomps
)
{
if
(
image
->
comps
[
compno
].
w
>
frame
->
linesize
[
0
]
/
numcomps
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Error: frame's linesize is too small for the image
\n
"
);
return
0
;
return
0
;
}
}
}
}
...
@@ -259,6 +261,7 @@ static int libopenjpeg_copy_unpacked8(AVCodecContext *avctx, AVFrame *frame, opj
...
@@ -259,6 +261,7 @@ static int libopenjpeg_copy_unpacked8(AVCodecContext *avctx, AVFrame *frame, opj
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
if
(
image
->
comps
[
compno
].
w
>
frame
->
linesize
[
compno
])
{
if
(
image
->
comps
[
compno
].
w
>
frame
->
linesize
[
compno
])
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Error: frame's linesize is too small for the image
\n
"
);
return
0
;
return
0
;
}
}
}
}
...
@@ -288,6 +291,7 @@ static int libopenjpeg_copy_unpacked16(AVCodecContext *avctx, AVFrame *frame, op
...
@@ -288,6 +291,7 @@ static int libopenjpeg_copy_unpacked16(AVCodecContext *avctx, AVFrame *frame, op
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
if
(
image
->
comps
[
compno
].
w
>
frame
->
linesize
[
compno
])
{
if
(
image
->
comps
[
compno
].
w
>
frame
->
linesize
[
compno
])
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Error: frame's linesize is too small for the image
\n
"
);
return
0
;
return
0
;
}
}
}
}
...
...
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