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
6fc57856
Commit
6fc57856
authored
Nov 05, 2013
by
Tristan Matthews
Committed by
Ilkka Ollakka
Nov 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: reuse DEFAULT_ALIGN
Signed-off-by:
Ilkka Ollakka
<
ileoo@videolan.org
>
parent
64d26fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+1
-7
No files found.
modules/codec/avcodec/encoder.c
View file @
6fc57856
...
...
@@ -1163,12 +1163,6 @@ static block_t *handle_delay_buffer( encoder_t *p_enc, encoder_sys_t *p_sys, int
//How much we need to copy from new packet
const
int
leftover
=
leftover_samples
*
p_sys
->
p_context
->
channels
*
p_sys
->
i_sample_bytes
;
#if LIBAVUTIL_VERSION_CHECK( 51,27,2,46,100 )
const
int
align
=
0
;
#else
const
int
align
=
1
;
#endif
avcodec_get_frame_defaults
(
p_sys
->
frame
);
p_sys
->
frame
->
format
=
p_sys
->
p_context
->
sample_fmt
;
p_sys
->
frame
->
nb_samples
=
leftover_samples
+
p_sys
->
i_samples_delay
;
...
...
@@ -1208,7 +1202,7 @@ static block_t *handle_delay_buffer( encoder_t *p_enc, encoder_sys_t *p_sys, int
if
(
avcodec_fill_audio_frame
(
p_sys
->
frame
,
p_sys
->
p_context
->
channels
,
p_sys
->
p_context
->
sample_fmt
,
p_sys
->
b_planar
?
p_sys
->
p_interleave_buf
:
p_sys
->
p_buffer
,
p_sys
->
i_buffer_out
,
align
)
<
0
)
DEFAULT_ALIGN
)
<
0
)
{
msg_Err
(
p_enc
,
"filling error on fillup"
);
p_sys
->
frame
->
nb_samples
=
0
;
...
...
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