Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
0abe25aa
Commit
0abe25aa
authored
13 years ago
by
Michael Bradshaw
Committed by
Carl Eugen Hoyos
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
libopenjpegenc: Add error messages.
parent
ee33eb40
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/libopenjpegenc.c
+4
-0
4 additions, 0 deletions
libavcodec/libopenjpegenc.c
with
4 additions
and
0 deletions
libavcodec/libopenjpegenc.c
+
4
−
0
View file @
0abe25aa
...
...
@@ -207,6 +207,7 @@ static int libopenjpeg_copy_packed8(AVCodecContext *avctx, AVFrame *frame, opj_i
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
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
;
}
}
...
...
@@ -233,6 +234,7 @@ static int libopenjpeg_copy_packed16(AVCodecContext *avctx, AVFrame *frame, opj_
for
(
compno
=
0
;
compno
<
numcomps
;
++
compno
)
{
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
;
}
}
...
...
@@ -259,6 +261,7 @@ static int libopenjpeg_copy_unpacked8(AVCodecContext *avctx, AVFrame *frame, opj
for
(
compno
=
0
;
compno
<
numcomps
;
++
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
;
}
}
...
...
@@ -288,6 +291,7 @@ static int libopenjpeg_copy_unpacked16(AVCodecContext *avctx, AVFrame *frame, op
for
(
compno
=
0
;
compno
<
numcomps
;
++
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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment