[vlc-commits] avcodec: remove write-only b_has_b_frames
Rémi Denis-Courmont
git at videolan.org
Wed Apr 22 20:46:12 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 22 20:25:11 2015 +0300| [d62b363a92a7e80b30cd24c218541dde00b688af] | committer: Rémi Denis-Courmont
avcodec: remove write-only b_has_b_frames
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d62b363a92a7e80b30cd24c218541dde00b688af
---
modules/codec/avcodec/video.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 5c76ab0..e963d75 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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)
More information about the vlc-commits
mailing list