Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
29fe32be
Commit
29fe32be
authored
Mar 03, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: set audio channels directly rather than channels count
parent
5f9d5c69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
modules/access/rtp/rtp.c
modules/access/rtp/rtp.c
+15
-7
No files found.
modules/access/rtp/rtp.c
View file @
29fe32be
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include <vlc_network.h>
#include <vlc_network.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_dialog.h>
#include <vlc_dialog.h>
#include <vlc_aout.h>
#include "rtp.h"
#include "rtp.h"
#ifdef HAVE_SRTP
#ifdef HAVE_SRTP
...
@@ -478,7 +479,8 @@ static void *pcmu_init (demux_t *demux)
...
@@ -478,7 +479,8 @@ static void *pcmu_init (demux_t *demux)
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_MULAW
);
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_MULAW
);
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_channels
=
1
;
fmt
.
audio
.
i_original_channels
=
fmt
.
audio
.
i_physical_channels
=
AOUT_CHAN_CENTER
;
return
codec_init
(
demux
,
&
fmt
);
return
codec_init
(
demux
,
&
fmt
);
}
}
...
@@ -491,7 +493,8 @@ static void *gsm_init (demux_t *demux)
...
@@ -491,7 +493,8 @@ static void *gsm_init (demux_t *demux)
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_GSM
);
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_GSM
);
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_channels
=
1
;
fmt
.
audio
.
i_original_channels
=
fmt
.
audio
.
i_physical_channels
=
AOUT_CHAN_CENTER
;
return
codec_init
(
demux
,
&
fmt
);
return
codec_init
(
demux
,
&
fmt
);
}
}
...
@@ -504,7 +507,8 @@ static void *pcma_init (demux_t *demux)
...
@@ -504,7 +507,8 @@ static void *pcma_init (demux_t *demux)
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_ALAW
);
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_ALAW
);
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_channels
=
1
;
fmt
.
audio
.
i_original_channels
=
fmt
.
audio
.
i_physical_channels
=
AOUT_CHAN_CENTER
;
return
codec_init
(
demux
,
&
fmt
);
return
codec_init
(
demux
,
&
fmt
);
}
}
...
@@ -517,7 +521,8 @@ static void *l16s_init (demux_t *demux)
...
@@ -517,7 +521,8 @@ static void *l16s_init (demux_t *demux)
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_S16B
);
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_S16B
);
fmt
.
audio
.
i_rate
=
44100
;
fmt
.
audio
.
i_rate
=
44100
;
fmt
.
audio
.
i_channels
=
2
;
fmt
.
audio
.
i_original_channels
=
fmt
.
audio
.
i_physical_channels
=
AOUT_CHANS_STEREO
;
return
codec_init
(
demux
,
&
fmt
);
return
codec_init
(
demux
,
&
fmt
);
}
}
...
@@ -527,7 +532,8 @@ static void *l16m_init (demux_t *demux)
...
@@ -527,7 +532,8 @@ static void *l16m_init (demux_t *demux)
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_S16B
);
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_S16B
);
fmt
.
audio
.
i_rate
=
44100
;
fmt
.
audio
.
i_rate
=
44100
;
fmt
.
audio
.
i_channels
=
1
;
fmt
.
audio
.
i_original_channels
=
fmt
.
audio
.
i_physical_channels
=
AOUT_CHAN_CENTER
;
return
codec_init
(
demux
,
&
fmt
);
return
codec_init
(
demux
,
&
fmt
);
}
}
...
@@ -540,7 +546,8 @@ static void *qcelp_init (demux_t *demux)
...
@@ -540,7 +546,8 @@ static void *qcelp_init (demux_t *demux)
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_QCELP
);
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_QCELP
);
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_channels
=
1
;
fmt
.
audio
.
i_original_channels
=
fmt
.
audio
.
i_physical_channels
=
AOUT_CHAN_CENTER
;
return
codec_init
(
demux
,
&
fmt
);
return
codec_init
(
demux
,
&
fmt
);
}
}
...
@@ -552,7 +559,8 @@ static void *mpa_init (demux_t *demux)
...
@@ -552,7 +559,8 @@ static void *mpa_init (demux_t *demux)
es_format_t
fmt
;
es_format_t
fmt
;
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_MPGA
);
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_CODEC_MPGA
);
fmt
.
audio
.
i_channels
=
2
;
fmt
.
audio
.
i_original_channels
=
fmt
.
audio
.
i_physical_channels
=
AOUT_CHANS_STEREO
;
fmt
.
b_packetized
=
false
;
fmt
.
b_packetized
=
false
;
return
codec_init
(
demux
,
&
fmt
);
return
codec_init
(
demux
,
&
fmt
);
}
}
...
...
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