tta: check remaining bitstream size while reading unary value

pull/2/head
Justin Ruggles 13 years ago
parent 3d813e4c54
commit 35f9d8c20a
  1. 2
      libavcodec/tta.c

@ -182,7 +182,7 @@ static int tta_get_unary(GetBitContext *gb)
int ret = 0;
// count ones
while(get_bits1(gb))
while (get_bits_left(gb) > 0 && get_bits1(gb))
ret++;
return ret;
}

Loading…
Cancel
Save