vlc | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Wed Sep 19 21:33:05 2018 +0300| [ffc8c37d94926440d6e3f3a598845d75b973bdd3] | committer: Rémi Denis-Courmont
textst: fix warned UB > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ffc8c37d94926440d6e3f3a598845d75b973bdd3 --- modules/codec/textst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/codec/textst.c b/modules/codec/textst.c index 5c65ec4ea8..567f97edf0 100644 --- a/modules/codec/textst.c +++ b/modules/codec/textst.c @@ -237,8 +237,8 @@ static int Decode(decoder_t *p_dec, block_t *p_block) (p_block->i_flags & BLOCK_FLAG_CORRUPTED) == 0 && (p_sub = decoder_NewSubpictureText(p_dec))) { - p_sub->i_start = FROM_SCALE((int64_t)((p_block->p_buffer[3] & 0x01) << 32) | GetDWBE(&p_block->p_buffer[4])); - p_sub->i_stop = FROM_SCALE((int64_t)((p_block->p_buffer[8] & 0x01) << 32) | GetDWBE(&p_block->p_buffer[9])); + p_sub->i_start = FROM_SCALE(((int64_t)(p_block->p_buffer[3] & 0x01) << 32) | GetDWBE(&p_block->p_buffer[4])); + p_sub->i_stop = FROM_SCALE(((int64_t)(p_block->p_buffer[8] & 0x01) << 32) | GetDWBE(&p_block->p_buffer[9])); if (p_sub->i_start < p_block->i_dts) { p_sub->i_stop += p_block->i_dts - p_sub->i_start; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits