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
3f917447
Commit
3f917447
authored
Mar 31, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed non initialized date_t in some corner case with avcodec.
parent
4ca88029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/codec/avcodec/audio.c
modules/codec/avcodec/audio.c
+6
-4
No files found.
modules/codec/avcodec/audio.c
View file @
3f917447
...
...
@@ -217,15 +217,17 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
p_sys
->
i_previous_channels
=
0
;
p_sys
->
i_previous_layout
=
0
;
date_Set
(
&
p_sys
->
end_date
,
0
);
if
(
p_dec
->
fmt_in
.
audio
.
i_rate
)
date_Init
(
&
p_sys
->
end_date
,
p_dec
->
fmt_in
.
audio
.
i_rate
,
1
);
/* */
p_dec
->
fmt_out
.
i_cat
=
AUDIO_ES
;
/* Try to set as much informations as possible but do not trust it */
SetupOutputFormat
(
p_dec
,
false
);
date_Set
(
&
p_sys
->
end_date
,
0
);
if
(
p_dec
->
fmt_out
.
audio
.
i_rate
)
date_Init
(
&
p_sys
->
end_date
,
p_dec
->
fmt_out
.
audio
.
i_rate
,
1
);
else
if
(
p_dec
->
fmt_in
.
audio
.
i_rate
)
date_Init
(
&
p_sys
->
end_date
,
p_dec
->
fmt_in
.
audio
.
i_rate
,
1
);
return
VLC_SUCCESS
;
}
...
...
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