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
e0fd3197
Commit
e0fd3197
authored
Jun 04, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/proresenc_anatoliy: Use more specific error codes
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4cb7cd4c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
proresenc_anatoliy.c
libavcodec/proresenc_anatoliy.c
+3
-3
No files found.
libavcodec/proresenc_anatoliy.c
View file @
e0fd3197
...
...
@@ -542,14 +542,14 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
if
(
avctx
->
pix_fmt
!=
AV_PIX_FMT_YUV422P10
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"need YUV422P10
\n
"
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
avctx
->
bits_per_raw_sample
=
10
;
if
(
avctx
->
width
&
0x1
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"frame width needs to be multiple of 2
\n
"
);
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
if
(
avctx
->
width
>
65534
||
avctx
->
height
>
65535
)
{
...
...
@@ -578,7 +578,7 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
AV_LOG_ERROR
,
"unknown profile %d, use [0 - apco, 1 - apcs, 2 - apcn (default), 3 - apch]
\n
"
,
avctx
->
profile
);
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
ff_fdctdsp_init
(
&
ctx
->
fdsp
,
avctx
);
...
...
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