Browse Source

vlc_bits: fix negative remain regression

pull/77/head
Francois Cartegnie 8 years ago
parent
commit
fd2450ab3e
  1. 2
      modules/packetizer/hxxx_ep3b.h

2
modules/packetizer/hxxx_ep3b.h

@ -126,7 +126,7 @@ static size_t hxxx_bsfw_byte_remain_ep3b( const bs_t *s )
struct hxxx_bsfw_ep3b_ctx_s *ctx = (struct hxxx_bsfw_ep3b_ctx_s *) s->p_priv;
if( ctx->i_bytesize == 0 && s->p_start != s->p_end )
ctx->i_bytesize = hxxx_ep3b_total_size( s->p_start, s->p_end );
return ctx->i_bytesize - ctx->i_bytepos;
return (ctx->i_bytesize > ctx->i_bytepos) ? ctx->i_bytesize - ctx->i_bytepos : 0;
}
static const bs_byte_callbacks_t hxxx_bsfw_ep3b_callbacks =

Loading…
Cancel
Save