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
c0e9824c
Commit
c0e9824c
authored
6 years ago
by
hwren
Committed by
Mark Thompson
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
lavc/libdavs2: fix error return codes
Signed-off-by:
hwren
<
hwrenx@126.com
>
parent
6f23c327
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/libdavs2.c
+3
-3
3 additions, 3 deletions
libavcodec/libdavs2.c
with
3 additions
and
3 deletions
libavcodec/libdavs2.c
+
3
−
3
View file @
c0e9824c
...
...
@@ -50,7 +50,7 @@ static av_cold int davs2_init(AVCodecContext *avctx)
if
(
!
cad
->
decoder
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"decoder created error."
);
return
AVERROR
(
EINV
AL
)
;
return
AVERROR
_EXTERN
AL
;
}
av_log
(
avctx
,
AV_LOG_VERBOSE
,
"decoder created. %p
\n
"
,
cad
->
decoder
);
...
...
@@ -84,7 +84,7 @@ static int davs2_dump_frames(AVCodecContext *avctx, davs2_picture_t *pic,
if
(
!
frame
->
buf
[
plane
]){
av_log
(
avctx
,
AV_LOG_ERROR
,
"dump error: alloc failed.
\n
"
);
return
AVERROR
(
E
INVAL
);
return
AVERROR
(
E
NOMEM
);
}
frame
->
data
[
plane
]
=
frame
->
buf
[
plane
]
->
data
;
...
...
@@ -142,7 +142,7 @@ static int davs2_decode_frame(AVCodecContext *avctx, void *data,
if
(
ret
==
DAVS2_ERROR
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Decoder error: can't read packet
\n
"
);
return
AVERROR
(
EINV
AL
)
;
return
AVERROR
_EXTERN
AL
;
}
ret
=
davs2_decoder_recv_frame
(
cad
->
decoder
,
&
cad
->
headerset
,
&
cad
->
out_frame
);
...
...
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