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
9f69c8d1
Commit
9f69c8d1
authored
Mar 02, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video.c: don't display pre-rolled pictures
es_out.c: handle the pre-roll earlier
parent
77e19efd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2287 additions
and
2278 deletions
+2287
-2278
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+881
-873
src/input/es_out.c
src/input/es_out.c
+1406
-1405
No files found.
modules/codec/ffmpeg/video.c
View file @
9f69c8d1
...
...
@@ -503,10 +503,18 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
}
}
else
{
if
(
!
(
p_block
->
i_flags
&
BLOCK_FLAG_PREROLL
))
{
b_drawpicture
=
1
;
p_sys
->
p_context
->
hurry_up
=
0
;
}
else
{
b_drawpicture
=
0
;
p_sys
->
p_context
->
hurry_up
=
1
;
}
}
if
(
p_sys
->
p_context
->
width
<=
0
||
p_sys
->
p_context
->
height
<=
0
)
...
...
src/input/es_out.c
View file @
9f69c8d1
...
...
@@ -837,6 +837,19 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
else
i_delay
=
0
;
/* Mark preroll blocks */
if
(
es
->
i_preroll_end
>=
0
)
{
int64_t
i_date
=
p_block
->
i_pts
;
if
(
i_date
<=
0
)
i_date
=
p_block
->
i_dts
;
if
(
i_date
<
es
->
i_preroll_end
)
p_block
->
i_flags
|=
BLOCK_FLAG_PREROLL
;
else
es
->
i_preroll_end
=
-
1
;
}
/* +11 -> avoid null value with non null dts/pts */
if
(
p_block
->
i_dts
>
0
)
{
...
...
@@ -865,18 +878,6 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
}
p_block
->
i_rate
=
p_input
->
i_rate
;
/* Mark preroll blocks */
if
(
es
->
i_preroll_end
>=
0
)
{
int64_t
i_date
=
p_block
->
i_pts
;
if
(
i_date
<=
0
)
i_date
=
p_block
->
i_dts
;
if
(
i_date
<
es
->
i_preroll_end
)
p_block
->
i_flags
|=
BLOCK_FLAG_PREROLL
;
else
es
->
i_preroll_end
=
-
1
;
}
/* TODO handle mute */
if
(
es
->
p_dec
&&
(
es
->
fmt
.
i_cat
!=
AUDIO_ES
||
...
...
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