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
192cad60
Commit
192cad60
authored
May 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added and used VLC_CODEC_MP3 when applicable.
I also removed its use where it cannot/should not happen.
parent
ec6a7b8e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
include/vlc_fourcc.h
include/vlc_fourcc.h
+4
-0
modules/codec/shine/shine_mod.c
modules/codec/shine/shine_mod.c
+1
-1
modules/misc/rtsp.c
modules/misc/rtsp.c
+0
-1
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+0
-1
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+0
-1
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+2
-2
No files found.
include/vlc_fourcc.h
View file @
192cad60
...
...
@@ -293,8 +293,12 @@
#endif
/* Non official codecs, used to force a profile in an encoder */
/* MPEG-1 video */
#define VLC_CODEC_MP1V VLC_FOURCC('m','p','1','v')
/* MPEG-2 video */
#define VLC_CODEC_MP2V VLC_FOURCC('m','p','2','v')
/* MPEG-I/II layer 3 audio */
#define VLC_CODEC_MP3 VLC_FOURCC('m','p','3',' ')
/**
* It returns the codec associatedto a fourcc within a ES category.
...
...
modules/codec/shine/shine_mod.c
View file @
192cad60
...
...
@@ -74,7 +74,7 @@ static int OpenEncoder( vlc_object_t *p_this )
encoder_sys_t
*
p_sys
;
/* FIXME: what about layers 1 and 2 ? shine is an 'MP3' encoder */
if
(
p_enc
->
fmt_out
.
i_codec
!=
VLC_
FOURCC
(
'm'
,
'p'
,
'3'
,
' '
)
||
if
(
p_enc
->
fmt_out
.
i_codec
!=
VLC_
CODEC_MP3
||
p_enc
->
fmt_out
.
audio
.
i_channels
>
2
)
return
VLC_EGENERIC
;
...
...
modules/misc/rtsp.c
View file @
192cad60
...
...
@@ -542,7 +542,6 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
p_es
->
psz_rtpmap
=
NULL
;
break
;
case
VLC_CODEC_MPGA
:
case
VLC_FOURCC
(
'm'
,
'p'
,
'3'
,
' '
):
p_es
->
i_payload_type
=
14
;
p_es
->
psz_rtpmap
=
strdup
(
"MPA/90000"
);
break
;
...
...
modules/mux/mpeg/ts.c
View file @
192cad60
...
...
@@ -1046,7 +1046,6 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
switch
(
p_input
->
p_fmt
->
i_codec
)
{
case
VLC_CODEC_MPGA
:
case
VLC_FOURCC
(
'm'
,
'p'
,
'3'
,
' '
):
p_stream
->
i_stream_type
=
p_input
->
p_fmt
->
audio
.
i_rate
>=
32000
?
0x03
:
0x04
;
p_stream
->
i_stream_id
=
0xc0
;
...
...
modules/stream_out/rtp.c
View file @
192cad60
...
...
@@ -1064,7 +1064,6 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
rtp_set_ptime
(
id
,
20
,
1
);
break
;
case
VLC_CODEC_MPGA
:
case
VLC_FOURCC
(
'm'
,
'p'
,
'3'
,
' '
):
id
->
i_payload_type
=
14
;
id
->
psz_enc
=
"MPA"
;
id
->
i_clock_rate
=
90000
;
/* not 44100 */
...
...
modules/stream_out/transcode.c
View file @
192cad60
...
...
@@ -433,8 +433,8 @@ static int Open( vlc_object_t *p_this )
if
(
p_sys
->
i_acodec
)
{
if
(
p_sys
->
i_acodec
==
VLC_FOURCC
(
'm'
,
'p'
,
'3'
,
' '
)
&&
p_sys
->
i_channels
>
2
)
if
(
(
p_sys
->
i_acodec
==
VLC_CODEC_MP3
||
p_sys
->
i_acodec
==
VLC_CODEC_MPGA
)
&&
p_sys
->
i_channels
>
2
)
{
msg_Warn
(
p_stream
,
"%d channels invalid for mp3, forcing to 2"
,
p_sys
->
i_channels
);
...
...
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