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
7515ed0c
Commit
7515ed0c
authored
Feb 10, 2010
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent after r21741.
Originally committed as revision 21742 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
170870b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
29 deletions
+29
-29
rtsp.c
libavformat/rtsp.c
+29
-29
No files found.
libavformat/rtsp.c
View file @
7515ed0c
...
...
@@ -133,36 +133,36 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
else
c_name
=
"(null)"
;
get_word_sep
(
buf
,
sizeof
(
buf
),
"/"
,
&
p
);
i
=
atoi
(
buf
);
switch
(
codec
->
codec_type
)
{
case
CODEC_TYPE_AUDIO
:
av_log
(
s
,
AV_LOG_DEBUG
,
"audio codec set to: %s
\n
"
,
c_name
);
codec
->
sample_rate
=
RTSP_DEFAULT_AUDIO_SAMPLERATE
;
codec
->
channels
=
RTSP_DEFAULT_NB_AUDIO_CHANNELS
;
if
(
i
>
0
)
{
codec
->
sample_rate
=
i
;
get_word_sep
(
buf
,
sizeof
(
buf
),
"/"
,
&
p
);
i
=
atoi
(
buf
);
if
(
i
>
0
)
codec
->
channels
=
i
;
// TODO: there is a bug here; if it is a mono stream, and
// less than 22000Hz, faad upconverts to stereo and twice
// the frequency. No problem, but the sample rate is being
// set here by the sdp line. Patch on its way. (rdm)
}
av_log
(
s
,
AV_LOG_DEBUG
,
"audio samplerate set to: %i
\n
"
,
codec
->
sample_rate
);
av_log
(
s
,
AV_LOG_DEBUG
,
"audio channels set to: %i
\n
"
,
codec
->
channels
);
break
;
case
CODEC_TYPE_VIDEO
:
av_log
(
s
,
AV_LOG_DEBUG
,
"video codec set to: %s
\n
"
,
c_name
);
break
;
default:
break
;
get_word_sep
(
buf
,
sizeof
(
buf
),
"/"
,
&
p
);
i
=
atoi
(
buf
);
switch
(
codec
->
codec_type
)
{
case
CODEC_TYPE_AUDIO
:
av_log
(
s
,
AV_LOG_DEBUG
,
"audio codec set to: %s
\n
"
,
c_name
);
codec
->
sample_rate
=
RTSP_DEFAULT_AUDIO_SAMPLERATE
;
codec
->
channels
=
RTSP_DEFAULT_NB_AUDIO_CHANNELS
;
if
(
i
>
0
)
{
codec
->
sample_rate
=
i
;
get_word_sep
(
buf
,
sizeof
(
buf
),
"/"
,
&
p
);
i
=
atoi
(
buf
);
if
(
i
>
0
)
codec
->
channels
=
i
;
// TODO: there is a bug here; if it is a mono stream, and
// less than 22000Hz, faad upconverts to stereo and twice
// the frequency. No problem, but the sample rate is being
// set here by the sdp line. Patch on its way. (rdm)
}
return
0
;
av_log
(
s
,
AV_LOG_DEBUG
,
"audio samplerate set to: %i
\n
"
,
codec
->
sample_rate
);
av_log
(
s
,
AV_LOG_DEBUG
,
"audio channels set to: %i
\n
"
,
codec
->
channels
);
break
;
case
CODEC_TYPE_VIDEO
:
av_log
(
s
,
AV_LOG_DEBUG
,
"video codec set to: %s
\n
"
,
c_name
);
break
;
default:
break
;
}
return
0
;
}
/* return the length and optionally the data */
...
...
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