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
6365e4db
Commit
6365e4db
authored
Sep 09, 2012
by
Reimar Döffinger
Committed by
Anton Khirnov
Sep 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3enc: downgrade some errors in writing Xing frame to warnings
Also clarify the meaning of the log message.
parent
3b4bb19e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
mp3enc.c
libavformat/mp3enc.c
+5
-2
No files found.
libavformat/mp3enc.c
View file @
6365e4db
...
@@ -110,14 +110,17 @@ static void mp3_write_xing(AVFormatContext *s)
...
@@ -110,14 +110,17 @@ static void mp3_write_xing(AVFormatContext *s)
break
;
break
;
}
}
if
(
i
==
FF_ARRAY_ELEMS
(
avpriv_mpa_freq_tab
))
{
if
(
i
==
FF_ARRAY_ELEMS
(
avpriv_mpa_freq_tab
))
{
av_log
(
s
,
AV_LOG_ERROR
,
"Unsupported sample rate.
\n
"
);
av_log
(
s
,
AV_LOG_WARNING
,
"Unsupported sample rate, not writing Xing "
"header.
\n
"
);
return
;
return
;
}
}
switch
(
codec
->
channels
)
{
switch
(
codec
->
channels
)
{
case
1
:
channels
=
MPA_MONO
;
break
;
case
1
:
channels
=
MPA_MONO
;
break
;
case
2
:
channels
=
MPA_STEREO
;
break
;
case
2
:
channels
=
MPA_STEREO
;
break
;
default:
av_log
(
s
,
AV_LOG_ERROR
,
"Unsupported number of channels.
\n
"
);
return
;
default:
av_log
(
s
,
AV_LOG_WARNING
,
"Unsupported number of channels, "
"not writing Xing header.
\n
"
);
return
;
}
}
/* dummy MPEG audio header */
/* dummy MPEG audio header */
...
...
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