Commit d62b363a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: remove write-only b_has_b_frames

parent 61057399
...@@ -64,8 +64,6 @@ struct decoder_sys_t ...@@ -64,8 +64,6 @@ struct decoder_sys_t
bool b_direct_rendering; bool b_direct_rendering;
int i_direct_rendering_used; int i_direct_rendering_used;
bool b_has_b_frames;
/* Hack to force display of still pictures */ /* Hack to force display of still pictures */
bool b_first_frame; bool b_first_frame;
...@@ -459,7 +457,6 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context, ...@@ -459,7 +457,6 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
/* ***** misc init ***** */ /* ***** misc init ***** */
p_sys->i_pts = VLC_TS_INVALID; p_sys->i_pts = VLC_TS_INVALID;
p_sys->b_has_b_frames = false;
p_sys->b_first_frame = true; p_sys->b_first_frame = true;
p_sys->b_flush = false; p_sys->b_flush = false;
p_sys->i_late_frames = 0; p_sys->i_late_frames = 0;
...@@ -728,12 +725,6 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) ...@@ -728,12 +725,6 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
continue; 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 */ /* Compute the PTS */
mtime_t i_pts = frame->pkt_pts; mtime_t i_pts = frame->pkt_pts;
if (i_pts <= VLC_TS_INVALID) if (i_pts <= VLC_TS_INVALID)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment