only need to check if we have the exact amount of bits we're interested in
This commit is contained in:
parent
83dfa6a374
commit
51c1782075
1 changed files with 2 additions and 2 deletions
|
@ -474,7 +474,7 @@ parse_mpeg2video_pic_start(th_transport_t *t, th_stream_t *st, th_pkt_t *pkt,
|
|||
{
|
||||
int v, pct;
|
||||
|
||||
if(bs->len < 6 * 8)
|
||||
if(bs->len < 29)
|
||||
return 1;
|
||||
|
||||
skip_bits(bs, 10); /* temporal reference */
|
||||
|
@ -507,7 +507,7 @@ parse_mpeg2video_seq_start(th_transport_t *t, th_stream_t *st,
|
|||
{
|
||||
int v;
|
||||
|
||||
if(bs->len < 11 * 8)
|
||||
if(bs->len < 61)
|
||||
return 1;
|
||||
|
||||
skip_bits(bs, 12);
|
||||
|
|
Loading…
Add table
Reference in a new issue