Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
87c351e5
Commit
87c351e5
authored
Jul 26, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed timestamps handling in various audio filters.
parent
8c826f39
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
0 deletions
+11
-0
modules/audio_filter/channel_mixer/dolby.c
modules/audio_filter/channel_mixer/dolby.c
+4
-0
modules/audio_filter/channel_mixer/trivial.c
modules/audio_filter/channel_mixer/trivial.c
+3
-0
modules/audio_filter/converter/fixed.c
modules/audio_filter/converter/fixed.c
+2
-0
modules/audio_filter/resampler/bandlimited.c
modules/audio_filter/resampler/bandlimited.c
+1
-0
modules/audio_filter/scaletempo.c
modules/audio_filter/scaletempo.c
+1
-0
No files found.
modules/audio_filter/channel_mixer/dolby.c
View file @
87c351e5
...
...
@@ -177,6 +177,10 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
float
*
p_out
=
(
float
*
)
p_out_buf
->
p_buffer
;
p_out_buf
->
i_nb_samples
=
i_nb_samples
;
p_out_buf
->
i_dts
=
p_in_buf
->
i_dts
;
p_out_buf
->
i_pts
=
p_in_buf
->
i_pts
;
p_out_buf
->
i_length
=
p_in_buf
->
i_length
;
memset
(
p_out
,
0
,
p_out_buf
->
i_buffer
);
if
(
p_sys
->
i_rear_left
>=
0
)
...
...
modules/audio_filter/channel_mixer/trivial.c
View file @
87c351e5
...
...
@@ -115,6 +115,9 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
if
(
!
p_out_buf
)
goto
out
;
p_out_buf
->
i_nb_samples
=
p_in_buf
->
i_nb_samples
;
p_out_buf
->
i_dts
=
p_in_buf
->
i_dts
;
p_out_buf
->
i_pts
=
p_in_buf
->
i_pts
;
p_out_buf
->
i_length
=
p_in_buf
->
i_length
;
}
int32_t
*
p_dest
=
(
int32_t
*
)
p_out_buf
->
p_buffer
;
...
...
modules/audio_filter/converter/fixed.c
View file @
87c351e5
...
...
@@ -204,6 +204,7 @@ static block_t *Do_S16ToF32( filter_t * p_filter, block_t * p_in_buf )
p_in
++
;
p_out
++
;
}
p_out_buf
->
i_dts
=
p_in_buf
->
i_dts
;
p_out_buf
->
i_pts
=
p_in_buf
->
i_pts
;
p_out_buf
->
i_length
=
p_in_buf
->
i_length
;
p_out_buf
->
i_nb_samples
=
p_in_buf
->
i_nb_samples
;
...
...
@@ -233,6 +234,7 @@ static block_t *Do_U8ToF32( filter_t * p_filter, block_t * p_in_buf )
*
p_out
=
(
vlc_fixed_t
)(
(
int32_t
)(
*
p_in
-
128
)
*
(
FIXED32_ONE
/
128
)
);
p_in
++
;
p_out
++
;
}
p_out_buf
->
i_dts
=
p_in_buf
->
i_dts
;
p_out_buf
->
i_pts
=
p_in_buf
->
i_pts
;
p_out_buf
->
i_length
=
p_in_buf
->
i_length
;
p_out_buf
->
i_nb_samples
=
p_in_buf
->
i_nb_samples
;
...
...
modules/audio_filter/resampler/bandlimited.c
View file @
87c351e5
...
...
@@ -235,6 +235,7 @@ static block_t *Resample( filter_t * p_filter, block_t * p_in_buf )
/* Finalize aout buffer */
p_out_buf
->
i_nb_samples
=
i_out
;
p_out_buf
->
i_dts
=
p_out_buf
->
i_pts
=
date_Get
(
&
p_sys
->
end_date
);
p_out_buf
->
i_length
=
date_Increment
(
&
p_sys
->
end_date
,
p_out_buf
->
i_nb_samples
)
-
p_out_buf
->
i_pts
;
...
...
modules/audio_filter/scaletempo.c
View file @
87c351e5
...
...
@@ -495,6 +495,7 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
p_out_buf
->
i_buffer
=
bytes_out
;
p_out_buf
->
i_nb_samples
=
bytes_out
/
p
->
bytes_per_frame
;
p_out_buf
->
i_dts
=
p_in_buf
->
i_dts
;
p_out_buf
->
i_pts
=
p_in_buf
->
i_pts
;
p_out_buf
->
i_length
=
p_in_buf
->
i_length
;
...
...
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