Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b69ad311
Commit
b69ad311
authored
Feb 18, 2014
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mux: add case for MP3 in muxers as it's not different codec that default mpga
parent
fe5063ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
modules/mux/asf.c
modules/mux/asf.c
+2
-4
modules/mux/avi.c
modules/mux/avi.c
+1
-1
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+3
-1
No files found.
modules/mux/asf.c
View file @
b69ad311
...
...
@@ -374,22 +374,20 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
tk
->
psz_name
=
"MPEG-4 Audio"
;
i_bitspersample
=
0
;
break
;
case
VLC_CODEC_MPGA
:
#if 1
case
VLC_CODEC_MP3
:
tk
->
psz_name
=
"MPEG Audio Layer 3"
;
tk
->
i_tag
=
WAVE_FORMAT_MPEGLAYER3
;
i_bitspersample
=
0
;
i_blockalign
=
1
;
i_extra
=
12
;
break
;
#else
case
VLC_CODEC_MPGA
:
tk
->
psz_name
=
"MPEG Audio Layer 1/2"
;
tk
->
i_tag
=
WAVE_FORMAT_MPEG
;
i_bitspersample
=
0
;
i_blockalign
=
1
;
i_extra
=
22
;
break
;
#endif
case
VLC_CODEC_WMA1
:
tk
->
psz_name
=
"Windows Media Audio v1"
;
tk
->
i_tag
=
WAVE_FORMAT_WMA1
;
...
...
modules/mux/avi.c
View file @
b69ad311
...
...
@@ -343,7 +343,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
p_wf
->
wFormatTag
=
WAVE_FORMAT_A52
;
p_wf
->
nBlockAlign
=
1
;
break
;
case
VLC_CODEC_MP
GA
:
case
VLC_CODEC_MP
3
:
p_wf
->
wFormatTag
=
WAVE_FORMAT_MPEGLAYER3
;
p_wf
->
nBlockAlign
=
1
;
break
;
...
...
modules/mux/mpeg/ts.c
View file @
b69ad311
...
...
@@ -935,6 +935,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
/* AUDIO */
case
VLC_CODEC_MPGA
:
case
VLC_CODEC_MP3
:
p_stream
->
i_stream_type
=
p_input
->
p_fmt
->
audio
.
i_rate
>=
32000
?
0x03
:
0x04
;
p_stream
->
i_stream_id
=
0xc0
;
...
...
@@ -1289,7 +1290,8 @@ static bool MuxStreams(sout_mux_t *p_mux )
block_t
*
p_data
;
if
(
p_stream
==
p_pcr_stream
||
p_sys
->
b_data_alignment
||
p_input
->
p_fmt
->
i_codec
!=
VLC_CODEC_MPGA
)
||
((
p_input
->
p_fmt
->
i_codec
!=
VLC_CODEC_MPGA
)
&&
(
p_input
->
p_fmt
->
i_codec
!=
VLC_CODEC_MP3
)
)
)
{
p_data
=
block_FifoGet
(
p_input
->
p_fifo
);
if
(
p_data
->
i_pts
<=
VLC_TS_INVALID
)
...
...
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