Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d62b363a
Commit
d62b363a
authored
Apr 22, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: remove write-only b_has_b_frames
parent
61057399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+0
-9
No files found.
modules/codec/avcodec/video.c
View file @
d62b363a
...
...
@@ -64,8 +64,6 @@ struct decoder_sys_t
bool
b_direct_rendering
;
int
i_direct_rendering_used
;
bool
b_has_b_frames
;
/* Hack to force display of still pictures */
bool
b_first_frame
;
...
...
@@ -459,7 +457,6 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
/* ***** misc init ***** */
p_sys
->
i_pts
=
VLC_TS_INVALID
;
p_sys
->
b_has_b_frames
=
false
;
p_sys
->
b_first_frame
=
true
;
p_sys
->
b_flush
=
false
;
p_sys
->
i_late_frames
=
0
;
...
...
@@ -728,12 +725,6 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
continue
;
}
/* Sanity check (seems to be needed for some streams) */
if
(
frame
->
pict_type
==
AV_PICTURE_TYPE_B
)
{
p_sys
->
b_has_b_frames
=
true
;
}
/* Compute the PTS */
mtime_t
i_pts
=
frame
->
pkt_pts
;
if
(
i_pts
<=
VLC_TS_INVALID
)
...
...
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