Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
f7a2e12f
Commit
f7a2e12f
authored
Feb 22, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
roqaudioenc: return AVERROR codes instead of -1
parent
3fa9a999
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
roqaudioenc.c
libavcodec/roqaudioenc.c
+2
-2
No files found.
libavcodec/roqaudioenc.c
View file @
f7a2e12f
...
@@ -57,11 +57,11 @@ static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
...
@@ -57,11 +57,11 @@ static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
if
(
avctx
->
channels
>
2
)
{
if
(
avctx
->
channels
>
2
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Audio must be mono or stereo
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Audio must be mono or stereo
\n
"
);
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
}
if
(
avctx
->
sample_rate
!=
22050
)
{
if
(
avctx
->
sample_rate
!=
22050
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Audio must be 22050 Hz
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Audio must be 22050 Hz
\n
"
);
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
}
avctx
->
frame_size
=
ROQ_FRAME_SIZE
;
avctx
->
frame_size
=
ROQ_FRAME_SIZE
;
...
...
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