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
560ff809
Commit
560ff809
authored
Feb 23, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
av_log()
Originally committed as revision 2808 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
310ffb8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
amr.c
libavcodec/amr.c
+10
-10
No files found.
libavcodec/amr.c
View file @
560ff809
...
@@ -141,7 +141,7 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
...
@@ -141,7 +141,7 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
if
(
Speech_Decode_Frame_init
(
&
s
->
speech_decoder_state
,
"Decoder"
))
if
(
Speech_Decode_Frame_init
(
&
s
->
speech_decoder_state
,
"Decoder"
))
{
{
printf
(
"Speech_Decode_Frame_init error
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Speech_Decode_Frame_init error
\n
"
);
return
-
1
;
return
-
1
;
}
}
return
0
;
return
0
;
...
@@ -161,7 +161,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
...
@@ -161,7 +161,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
{
if
(
avctx
->
debug
)
if
(
avctx
->
debug
)
{
{
fprintf
(
stderr
,
"Only 8000Hz sample rate supported
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Only 8000Hz sample rate supported
\n
"
);
}
}
return
-
1
;
return
-
1
;
}
}
...
@@ -170,7 +170,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
...
@@ -170,7 +170,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
{
if
(
avctx
->
debug
)
if
(
avctx
->
debug
)
{
{
fprintf
(
stderr
,
"Only mono supported
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Only mono supported
\n
"
);
}
}
return
-
1
;
return
-
1
;
}
}
...
@@ -182,7 +182,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
...
@@ -182,7 +182,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
{
if
(
avctx
->
debug
)
if
(
avctx
->
debug
)
{
{
fprintf
(
stderr
,
"Speech_Encode_Frame_init error
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Speech_Encode_Frame_init error
\n
"
);
}
}
return
-
1
;
return
-
1
;
}
}
...
@@ -344,7 +344,7 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
...
@@ -344,7 +344,7 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
s
->
decState
=
Decoder_Interface_init
();
s
->
decState
=
Decoder_Interface_init
();
if
(
!
s
->
decState
)
if
(
!
s
->
decState
)
{
{
printf
(
"Decoder_Interface_init error
\r\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Decoder_Interface_init error
\r\n
"
);
return
-
1
;
return
-
1
;
}
}
return
0
;
return
0
;
...
@@ -359,7 +359,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
...
@@ -359,7 +359,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
{
if
(
avctx
->
debug
)
if
(
avctx
->
debug
)
{
{
fprintf
(
stderr
,
"Only 8000Hz sample rate supported
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Only 8000Hz sample rate supported
\n
"
);
}
}
return
-
1
;
return
-
1
;
}
}
...
@@ -368,7 +368,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
...
@@ -368,7 +368,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
{
if
(
avctx
->
debug
)
if
(
avctx
->
debug
)
{
{
fprintf
(
stderr
,
"Only mono supported
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Only mono supported
\n
"
);
}
}
return
-
1
;
return
-
1
;
}
}
...
@@ -381,7 +381,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
...
@@ -381,7 +381,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
{
{
if
(
avctx
->
debug
)
if
(
avctx
->
debug
)
{
{
fprintf
(
stderr
,
"Encoder_Interface_init error
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Encoder_Interface_init error
\n
"
);
}
}
return
-
1
;
return
-
1
;
}
}
...
@@ -543,7 +543,7 @@ static int amr_wb_encode_init(AVCodecContext * avctx)
...
@@ -543,7 +543,7 @@ static int amr_wb_encode_init(AVCodecContext * avctx)
{
{
if
(
avctx
->
debug
)
if
(
avctx
->
debug
)
{
{
fprintf
(
stderr
,
"Only 16000Hz sample rate supported
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Only 16000Hz sample rate supported
\n
"
);
}
}
return
-
1
;
return
-
1
;
}
}
...
@@ -552,7 +552,7 @@ static int amr_wb_encode_init(AVCodecContext * avctx)
...
@@ -552,7 +552,7 @@ static int amr_wb_encode_init(AVCodecContext * avctx)
{
{
if
(
avctx
->
debug
)
if
(
avctx
->
debug
)
{
{
fprintf
(
stderr
,
"Only mono supported
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Only mono supported
\n
"
);
}
}
return
-
1
;
return
-
1
;
}
}
...
...
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