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
17630b54
Commit
17630b54
authored
Oct 06, 2009
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asf.c: fix variable usage
parent
f96b0750
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
modules/mux/asf.c
modules/mux/asf.c
+6
-1
No files found.
modules/mux/asf.c
View file @
17630b54
...
...
@@ -30,6 +30,8 @@
# include "config.h"
#endif
#include <assert.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_sout.h>
...
...
@@ -933,6 +935,7 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
int
i_ci_size
,
i_cm_size
=
0
,
i_cd_size
=
0
;
block_t
*
out
;
bo_t
bo
;
tk
=
NULL
;
msg_Dbg
(
p_mux
,
"Asf muxer creating header"
);
...
...
@@ -1063,7 +1066,7 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
bo_addle_u32
(
&
bo
,
0
);
/* Alternate Initial buffer fullness */
bo_addle_u32
(
&
bo
,
0
);
/* Maximum object size (0 = unkown) */
bo_addle_u32
(
&
bo
,
0x02
);
/* Flags (seekable) */
bo_addle_u16
(
&
bo
,
t
k
->
i_id
);
/* Stream number */
bo_addle_u16
(
&
bo
,
p_trac
k
->
i_id
);
/* Stream number */
bo_addle_u16
(
&
bo
,
0
);
/* Stream language index */
bo_addle_u64
(
&
bo
,
i_avg_duration
);
/* Average time per frame */
bo_addle_u16
(
&
bo
,
0
);
/* Stream name count */
...
...
@@ -1076,12 +1079,14 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
int64_t
i_num
,
i_den
;
unsigned
int
i_dst_num
,
i_dst_den
;
asf_track_t
*
tk
;
tk
=
NULL
;
for
(
i
=
0
;
i
<
vlc_array_count
(
p_sys
->
p_tracks
);
i
++
)
{
tk
=
vlc_array_item_at_index
(
p_sys
->
p_tracks
,
i
);
if
(
tk
->
i_cat
==
VIDEO_ES
)
break
;
}
assert
(
tk
!=
NULL
);
i_num
=
tk
->
fmt
.
video
.
i_aspect
*
(
int64_t
)
tk
->
fmt
.
video
.
i_height
;
...
...
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