Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
653a3007
Commit
653a3007
authored
Dec 14, 2003
by
gbazin
Browse files
* modules/mux/ogg.c: added support for WMV1/2 and MJPG.
parent
8fcc60fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/mux/ogg.c
View file @
653a3007
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ogg.c: ogg muxer module for vlc
* ogg.c: ogg muxer module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: ogg.c,v 1.2
6
2003/12/
08 13:02:4
0 gbazin Exp $
* $Id: ogg.c,v 1.2
7
2003/12/
14 18:44:5
0 gbazin Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -355,15 +355,18 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
...
@@ -355,15 +355,18 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
case
VIDEO_ES
:
case
VIDEO_ES
:
switch
(
p_stream
->
i_fourcc
)
switch
(
p_stream
->
i_fourcc
)
{
{
case
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
):
case
VLC_FOURCC
(
'D'
,
'I'
,
'V'
,
'3'
):
case
VLC_FOURCC
(
'D'
,
'I'
,
'V'
,
'3'
):
case
VLC_FOURCC
(
'M'
,
'J'
,
'P'
,
'G'
):
case
VLC_FOURCC
(
'W'
,
'M'
,
'V'
,
'1'
):
case
VLC_FOURCC
(
'W'
,
'M'
,
'V'
,
'2'
):
memcpy
(
p_stream
->
oggds_header
.
stream_type
,
"video"
,
5
);
memcpy
(
p_stream
->
oggds_header
.
stream_type
,
"video"
,
5
);
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
)
)
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
)
)
{
{
memcpy
(
p_stream
->
oggds_header
.
sub_type
,
"XVID"
,
4
);
memcpy
(
p_stream
->
oggds_header
.
sub_type
,
"XVID"
,
4
);
}
}
else
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'D'
,
'I'
,
'V'
,
'3'
)
)
else
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'D'
,
'I'
,
'V'
,
'3'
)
)
{
{
memcpy
(
p_stream
->
oggds_header
.
sub_type
,
"DIV3"
,
4
);
memcpy
(
p_stream
->
oggds_header
.
sub_type
,
"DIV3"
,
4
);
}
}
...
@@ -383,7 +386,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
...
@@ -383,7 +386,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
p_input
->
p_fmt
->
video
.
i_width
);
p_input
->
p_fmt
->
video
.
i_width
);
SetDWLE
(
&
p_stream
->
oggds_header
.
header
.
video
.
i_height
,
SetDWLE
(
&
p_stream
->
oggds_header
.
header
.
video
.
i_height
,
p_input
->
p_fmt
->
video
.
i_height
);
p_input
->
p_fmt
->
video
.
i_height
);
msg_Dbg
(
p_mux
,
"
mp4v/div3 stream"
);
msg_Dbg
(
p_mux
,
"
%4.4s stream"
,
(
char
*
)
&
p_stream
->
i_fourcc
);
break
;
break
;
case
VLC_FOURCC
(
't'
,
'h'
,
'e'
,
'o'
):
case
VLC_FOURCC
(
't'
,
'h'
,
'e'
,
'o'
):
...
@@ -399,14 +402,14 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
...
@@ -399,14 +402,14 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
case
AUDIO_ES
:
case
AUDIO_ES
:
switch
(
p_stream
->
i_fourcc
)
switch
(
p_stream
->
i_fourcc
)
{
{
case
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
):
case
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
):
case
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
):
memcpy
(
p_stream
->
oggds_header
.
stream_type
,
"audio"
,
5
);
memcpy
(
p_stream
->
oggds_header
.
stream_type
,
"audio"
,
5
);
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
)
)
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
)
)
{
{
memcpy
(
p_stream
->
oggds_header
.
sub_type
,
"55 "
,
4
);
memcpy
(
p_stream
->
oggds_header
.
sub_type
,
"55 "
,
4
);
}
}
else
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
)
)
else
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
)
)
{
{
memcpy
(
p_stream
->
oggds_header
.
sub_type
,
"2000"
,
4
);
memcpy
(
p_stream
->
oggds_header
.
sub_type
,
"2000"
,
4
);
}
}
...
...
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