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
302af54f
Commit
302af54f
authored
Mar 21, 2014
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fdkaac: set i_nb_samples for output blocks
parent
218f8cec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
modules/codec/fdkaac.c
modules/codec/fdkaac.c
+2
-0
No files found.
modules/codec/fdkaac.c
View file @
302af54f
...
...
@@ -505,6 +505,7 @@ static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_aout_buf )
(
double
)
p_enc
->
fmt_out
.
audio
.
i_rate
);
p_block
->
i_length
=
(
mtime_t
)((
double
)
CLOCK_FREQ
*
(
double
)
p_sys
->
i_frame_size
/
(
double
)
p_enc
->
fmt_out
.
audio
.
i_rate
);
p_block
->
i_nb_samples
=
d_samples_delay
;
//p_block->i_length = i_pts_out - p_sys->i_pts_last;
}
else
...
...
@@ -514,6 +515,7 @@ static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_aout_buf )
(
double
)
p_enc
->
fmt_out
.
audio
.
i_rate
);
i_pts_out
+=
(
mtime_t
)
d_length
;
p_block
->
i_length
=
(
mtime_t
)
d_length
;
p_block
->
i_nb_samples
=
d_samples_forward
;
}
}
p_block
->
i_dts
=
p_block
->
i_pts
=
i_pts_out
;
...
...
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