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
653a3007
Commit
653a3007
authored
Dec 14, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mux/ogg.c: added support for WMV1/2 and MJPG.
parent
8fcc60fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
modules/mux/ogg.c
modules/mux/ogg.c
+14
-11
No files found.
modules/mux/ogg.c
View file @
653a3007
...
...
@@ -2,7 +2,7 @@
* ogg.c: ogg muxer module for vlc
*****************************************************************************
* 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>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -355,15 +355,18 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
case
VIDEO_ES
:
switch
(
p_stream
->
i_fourcc
)
{
case
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
):
case
VLC_FOURCC
(
'D'
,
'I'
,
'V'
,
'3'
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
):
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
);
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
);
}
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
);
}
...
...
@@ -383,7 +386,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
p_input
->
p_fmt
->
video
.
i_width
);
SetDWLE
(
&
p_stream
->
oggds_header
.
header
.
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
;
case
VLC_FOURCC
(
't'
,
'h'
,
'e'
,
'o'
):
...
...
@@ -399,14 +402,14 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
case
AUDIO_ES
:
switch
(
p_stream
->
i_fourcc
)
{
case
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
):
case
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
):
case
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
):
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
);
}
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
);
}
...
...
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