Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
110e4f85
Commit
110e4f85
authored
Feb 13, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not loose pts on stream properties changes.
It closes #2349.
parent
1967b52d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
modules/packetizer/flac.c
modules/packetizer/flac.c
+2
-1
modules/packetizer/mlp.c
modules/packetizer/mlp.c
+2
-1
modules/packetizer/mpeg4audio.c
modules/packetizer/mpeg4audio.c
+2
-1
No files found.
modules/packetizer/flac.c
View file @
110e4f85
...
...
@@ -285,8 +285,9 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
if
(
p_sys
->
i_rate
!=
p_dec
->
fmt_out
.
audio
.
i_rate
)
{
p_dec
->
fmt_out
.
audio
.
i_rate
=
p_sys
->
i_rate
;
const
mtime_t
i_end_date
=
date_Get
(
&
p_sys
->
end_date
);
date_Init
(
&
p_sys
->
end_date
,
p_sys
->
i_rate
,
1
);
date_Set
(
&
p_sys
->
end_date
,
p_sys
->
i_pts
);
date_Set
(
&
p_sys
->
end_date
,
i_end_date
);
}
p_sys
->
i_state
=
STATE_NEXT_SYNC
;
p_sys
->
i_frame_size
=
p_sys
->
b_stream_info
&&
p_sys
->
stream_info
.
min_framesize
>
0
?
...
...
modules/packetizer/mlp.c
View file @
110e4f85
...
...
@@ -302,8 +302,9 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
msg_Info
(
p_dec
,
"MLP channels: %d samplerate: %d"
,
p_sys
->
mlp
.
i_channels
,
p_sys
->
mlp
.
i_rate
);
const
mtime_t
i_end_date
=
date_Get
(
&
p_sys
->
end_date
);
date_Init
(
&
p_sys
->
end_date
,
p_sys
->
mlp
.
i_rate
,
1
);
date_Set
(
&
p_sys
->
end_date
,
p_sys
->
i_pts
);
date_Set
(
&
p_sys
->
end_date
,
i_end_date
);
}
p_dec
->
fmt_out
.
audio
.
i_rate
=
p_sys
->
mlp
.
i_rate
;
...
...
modules/packetizer/mpeg4audio.c
View file @
110e4f85
...
...
@@ -1205,8 +1205,9 @@ static void SetupOutput( decoder_t *p_dec, block_t *p_block )
msg_Info
(
p_dec
,
"AAC channels: %d samplerate: %d"
,
p_sys
->
i_channels
,
p_sys
->
i_rate
);
const
mtime_t
i_end_date
=
date_Get
(
&
p_sys
->
end_date
);
date_Init
(
&
p_sys
->
end_date
,
p_sys
->
i_rate
,
1
);
date_Set
(
&
p_sys
->
end_date
,
p_sys
->
i_pts
);
date_Set
(
&
p_sys
->
end_date
,
i_end_date
);
}
p_dec
->
fmt_out
.
audio
.
i_rate
=
p_sys
->
i_rate
;
...
...
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