Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
35e651b8
Commit
35e651b8
authored
Nov 02, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport [17410] trough [17412] avi demux and mux fixes
parent
052cbf99
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+3
-3
modules/mux/avi.c
modules/mux/avi.c
+3
-2
No files found.
modules/demux/avi/avi.c
View file @
35e651b8
...
@@ -53,7 +53,7 @@ static void Close( vlc_object_t * );
...
@@ -53,7 +53,7 @@ static void Close( vlc_object_t * );
static
int
pi_index
[]
=
{
0
,
1
,
2
};
static
int
pi_index
[]
=
{
0
,
1
,
2
};
static
c
har
*
ppsz_indexes
[]
=
{
N_
(
"Ask"
),
N_
(
"Always fix"
),
static
c
onst
char
*
ppsz_indexes
[]
=
{
N_
(
"Ask"
),
N_
(
"Always fix"
),
N_
(
"Never fix"
)
};
N_
(
"Never fix"
)
};
vlc_module_begin
();
vlc_module_begin
();
...
@@ -798,7 +798,7 @@ static int Demux_Seekable( demux_t *p_demux )
...
@@ -798,7 +798,7 @@ static int Demux_Seekable( demux_t *p_demux )
}
}
if
(
toread
[
i
].
i_posf
>
0
)
if
(
toread
[
i
].
i_posf
>
0
)
{
{
if
(
i_pos
==
-
1
||
i_pos
>
toread
[
i
_track
].
i_posf
)
if
(
i_pos
==
-
1
||
i_pos
>
toread
[
i
].
i_posf
)
{
{
i_track
=
i
;
i_track
=
i
;
i_pos
=
toread
[
i
].
i_posf
;
i_pos
=
toread
[
i
].
i_posf
;
...
@@ -1305,7 +1305,7 @@ static double ControlGetPosition( demux_t *p_demux )
...
@@ -1305,7 +1305,7 @@ static double ControlGetPosition( demux_t *p_demux )
}
}
}
}
}
}
return
(
double
)
i64
/
(
double
)
stream_Size
(
p_demux
->
s
);
return
(
double
)
i64
/
stream_Size
(
p_demux
->
s
);
}
}
return
0
.
0
;
return
0
.
0
;
}
}
...
...
modules/mux/avi.c
View file @
35e651b8
...
@@ -473,6 +473,7 @@ static int Mux ( sout_mux_t *p_mux )
...
@@ -473,6 +473,7 @@ static int Mux ( sout_mux_t *p_mux )
if
(
p_data
->
i_buffer
&
0x01
)
if
(
p_data
->
i_buffer
&
0x01
)
{
{
p_data
=
block_Realloc
(
p_data
,
0
,
p_data
->
i_buffer
+
1
);
p_data
=
block_Realloc
(
p_data
,
0
,
p_data
->
i_buffer
+
1
);
p_data
->
p_buffer
[
p_data
->
i_buffer
-
1
]
=
'\0'
;
}
}
p_sys
->
i_movi_size
+=
p_data
->
i_buffer
;
p_sys
->
i_movi_size
+=
p_data
->
i_buffer
;
...
@@ -625,8 +626,8 @@ static int avi_HeaderAdd_avih( sout_mux_t *p_mux,
...
@@ -625,8 +626,8 @@ static int avi_HeaderAdd_avih( sout_mux_t *p_mux,
if
(
p_sys
->
stream
[
i_stream
].
i_duration
>
0
)
if
(
p_sys
->
stream
[
i_stream
].
i_duration
>
0
)
{
{
i_maxbytespersec
+=
i_maxbytespersec
+=
p_sys
->
stream
[
p_sys
->
i_stream_video
].
i_totalsize
/
p_sys
->
stream
[
i_stream
].
i_totalsize
/
p_sys
->
stream
[
p_sys
->
i_stream_video
].
i_duration
;
p_sys
->
stream
[
i_stream
].
i_duration
;
}
}
}
}
...
...
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