Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
26b0f760
Commit
26b0f760
authored
Apr 30, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Woops
parent
f1588c97
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
27 deletions
+13
-27
modules/mux/asf.c
modules/mux/asf.c
+0
-7
modules/mux/avi.c
modules/mux/avi.c
+13
-20
No files found.
modules/mux/asf.c
View file @
26b0f760
static
int
i_global
=
0
,
i_passed
=
0
,
i_written
=
0
;
/*****************************************************************************
* asf.c: asf muxer module for vlc
*****************************************************************************
...
...
@@ -584,8 +583,6 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
static
int
Mux
(
sout_mux_t
*
p_mux
)
{
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
i_global
++
;
fprintf
(
stderr
,
"Called %i
\n
"
,
i_global
);
if
(
p_sys
->
b_write_header
)
{
...
...
@@ -611,8 +608,6 @@ static int Mux( sout_mux_t *p_mux )
/* not enough data */
return
VLC_SUCCESS
;
}
i_passed
++
;
fprintf
(
stderr
,
"Passed %i
\n
"
,
i_passed
);
if
(
p_sys
->
i_dts_first
<
0
)
{
...
...
@@ -630,8 +625,6 @@ static int Mux( sout_mux_t *p_mux )
if
(
(
pk
=
asf_packet_create
(
p_mux
,
tk
,
data
)
)
)
{
i_written
++
;
fprintf
(
stderr
,
"Written %i
\n
"
,
i_written
);
sout_AccessOutWrite
(
p_mux
->
p_access
,
pk
);
}
}
...
...
modules/mux/avi.c
View file @
26b0f760
static
int
i_global
=
0
;
/*****************************************************************************
* avi.c
*****************************************************************************
...
...
@@ -111,7 +110,7 @@ struct sout_mux_sys_t
};
// FIXME FIXME
#define HDR_SIZE
4096
#define HDR_SIZE
10240
/* Flags in avih */
#define AVIF_HASINDEX 0x00000010 // Index at end of file?
...
...
@@ -405,7 +404,6 @@ static int Mux ( sout_mux_t *p_mux )
avi_stream_t
*
p_stream
;
int
i_stream
;
int
i
;
i_global
++
;
if
(
p_sys
->
b_write_header
)
{
...
...
@@ -476,6 +474,7 @@ i_global++;
{
p_data
=
block_Realloc
(
p_data
,
0
,
p_data
->
i_buffer
+
1
);
}
p_sys
->
i_movi_size
+=
p_data
->
i_buffer
;
sout_AccessOutWrite
(
p_mux
->
p_access
,
p_data
);
}
...
...
@@ -764,9 +763,9 @@ static int avi_HeaderAdd_strf( sout_mux_t *p_mux,
bo_AddDWordLE
(
p_bo
,
p_stream
->
p_bih
->
biYPelsPerMeter
);
bo_AddDWordLE
(
p_bo
,
p_stream
->
p_bih
->
biClrUsed
);
bo_AddDWordLE
(
p_bo
,
p_stream
->
p_bih
->
biClrImportant
);
//
bo_AddMem( p_bo,
//
p_stream->p_bih->biSize - sizeof( BITMAPINFOHEADER ),
//
(uint8_t*)&p_stream->p_bih[1] );
bo_AddMem
(
p_bo
,
p_stream
->
p_bih
->
biSize
-
sizeof
(
BITMAPINFOHEADER
),
(
uint8_t
*
)
&
p_stream
->
p_bih
[
1
]
);
break
;
}
...
...
@@ -792,38 +791,32 @@ static block_t *avi_HeaderCreateRIFF( sout_mux_t *p_mux )
int
i_stream
;
int
i_maxbytespersec
;
int
i_junk
;
buffer_out_t
bo
,
bo_save
;
buffer_out_t
bo
;
/* Real header + LIST-movi */
p_hdr
=
block_New
(
p_mux
,
HDR_SIZE
+
12
);
memset
(
p_hdr
->
p_buffer
,
0
,
HDR_SIZE
+
12
);
p_hdr
=
block_New
(
p_mux
,
HDR_SIZE
);
memset
(
p_hdr
->
p_buffer
,
0
,
HDR_SIZE
);
bo_Init
(
&
bo
,
HDR_SIZE
+
12
,
p_hdr
->
p_buffer
);
bo_Init
(
&
bo
,
HDR_SIZE
,
p_hdr
->
p_buffer
);
bo_AddFCC
(
&
bo
,
"RIFF"
);
bo_AddDWordLE
(
&
bo
,
p_sys
->
i_movi_size
+
HDR_SIZE
+
p_sys
->
i_idx1_size
);
bo_AddDWordLE
(
&
bo
,
p_sys
->
i_movi_size
+
HDR_SIZE
-
8
+
p_sys
->
i_idx1_size
);
bo_AddFCC
(
&
bo
,
"AVI "
);
bo_AddFCC
(
&
bo
,
"LIST"
);
memcpy
(
&
bo_save
,
&
bo
,
sizeof
(
buffer_out_t
)
);
bo_AddDWordLE
(
&
bo
,
0
);
bo_AddDWordLE
(
&
bo
,
HDR_SIZE
-
8
);
bo_AddFCC
(
&
bo
,
"hdrl"
);
avi_HeaderAdd_avih
(
p_mux
,
&
bo
);
for
(
i_stream
=
0
,
i_maxbytespersec
=
0
;
i_stream
<
p_sys
->
i_streams
;
i_stream
++
)
for
(
i_stream
=
0
,
i_maxbytespersec
=
0
;
i_stream
<
p_sys
->
i_streams
;
i_stream
++
)
{
avi_HeaderAdd_strl
(
p_mux
,
&
bo
,
&
p_sys
->
stream
[
i_stream
]
);
}
bo_AddDWordLE
(
&
bo_save
,
bo
.
i_buffer
-
bo_save
.
i_buffer
-
4
);
i_junk
=
HDR_SIZE
-
bo
.
i_buffer
-
8
;
i_junk
=
HDR_SIZE
-
bo
.
i_buffer
-
8
-
12
;
bo_AddFCC
(
&
bo
,
"JUNK"
);
bo_AddDWordLE
(
&
bo
,
i_junk
);
bo
.
i_buffer
+=
i_junk
;
fprintf
(
stderr
,
"Writing list-movi at %i
\n
"
,
bo
.
i_buffer
);
bo_AddFCC
(
&
bo
,
"LIST"
);
bo_AddDWordLE
(
&
bo
,
p_sys
->
i_movi_size
+
4
);
bo_AddFCC
(
&
bo
,
"movi"
);
...
...
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