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
2521d968
Commit
2521d968
authored
Oct 30, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/stream_out/transcode.c: fixed subtitles encoding when used with audio-sync.
parent
635d823d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+11
-5
No files found.
modules/stream_out/transcode.c
View file @
2521d968
...
@@ -1411,7 +1411,6 @@ static int transcode_video_process( sout_stream_t *p_stream,
...
@@ -1411,7 +1411,6 @@ static int transcode_video_process( sout_stream_t *p_stream,
while
(
(
p_pic
=
id
->
p_decoder
->
pf_decode_video
(
id
->
p_decoder
,
&
in
))
)
while
(
(
p_pic
=
id
->
p_decoder
->
pf_decode_video
(
id
->
p_decoder
,
&
in
))
)
{
{
subpicture_t
*
p_subpic
=
0
;
subpicture_t
*
p_subpic
=
0
;
mtime_t
i_pic_date
=
p_pic
->
date
;
if
(
p_sys
->
b_audio_sync
)
if
(
p_sys
->
b_audio_sync
)
{
{
...
@@ -1555,7 +1554,7 @@ static int transcode_video_process( sout_stream_t *p_stream,
...
@@ -1555,7 +1554,7 @@ static int transcode_video_process( sout_stream_t *p_stream,
/* Check if we have a subpicture to overlay */
/* Check if we have a subpicture to overlay */
if
(
p_sys
->
p_spu
)
if
(
p_sys
->
p_spu
)
{
{
p_subpic
=
spu_SortSubpictures
(
p_sys
->
p_spu
,
i_pic_
date
);
p_subpic
=
spu_SortSubpictures
(
p_sys
->
p_spu
,
p_pic
->
date
);
/* TODO: get another pic */
/* TODO: get another pic */
}
}
...
@@ -1874,12 +1873,19 @@ static int transcode_spu_process( sout_stream_t *p_stream,
...
@@ -1874,12 +1873,19 @@ static int transcode_spu_process( sout_stream_t *p_stream,
*
out
=
NULL
;
*
out
=
NULL
;
p_subpic
=
id
->
p_decoder
->
pf_decode_sub
(
id
->
p_decoder
,
&
in
);
p_subpic
=
id
->
p_decoder
->
pf_decode_sub
(
id
->
p_decoder
,
&
in
);
if
(
p_subpic
&&
p_sys
->
b_soverlay
)
if
(
!
p_subpic
)
return
VLC_EGENERIC
;
if
(
p_sys
->
b_audio_sync
&&
p_sys
->
i_master_drift
)
{
{
spu_DisplaySubpicture
(
p_sys
->
p_spu
,
p_subpic
);
p_subpic
->
i_start
-=
p_sys
->
i_master_drift
;
if
(
p_subpic
->
i_stop
)
p_subpic
->
i_stop
-=
p_sys
->
i_master_drift
;
}
}
if
(
p_subpic
&&
!
p_sys
->
b_soverlay
)
if
(
p_sys
->
b_soverlay
)
{
spu_DisplaySubpicture
(
p_sys
->
p_spu
,
p_subpic
);
}
else
{
{
block_t
*
p_block
;
block_t
*
p_block
;
...
...
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